私はHSMで証明書に署名しています。私はCA公開鍵をフォーマットして出力する必要があります。次のように私はEMVブックや形式を読み取る:フォーマット公開鍵
Field Name Length Description Format
Registered
Application Provider 5 Identifies the payment system to b
Identifier (RID) which the Certification Authority
Public Key is associated
Certification
Authority Public Key 1 Identifies the Certification
Index Authority Public Key in b
conjunction with the RID
Certification
Authority Hash 1 Identifies the hash algorithm used b
Algorithm Indicator to produce the Hash Result in the
digital signature scheme
Certification
Authority Public Key 1 Identifies the digital signature
Algorithm Indicator algorithm to be used with the b
Certification Authority Public Key
Certification
Authority Public Key Var. Value of the modulus part of the b
Modulus (max Certification Authority Public Key
248)
Certification
Authority Public Key 1 or 3 Value of the exponent part of the b
Exponent Certification Authority Public Key,
equal to 3 or 216 + 1
Certification
Authority Public Key 20 A check value calculated on the b
Check Sum36 concatenation of all parts of the
Certification Authority Public Key
(RID, Certification Authority
Public Key Index, Certification
Authority Public Key Modulus,
Certification Authority Public Key
Exponent) using SHA-1
私はコードと出力でこれをフォーマットすることができ、私は、Visual Basic.net.Howでコードを書いていますか? PublicKeyという名前のクラスを作成し、ExportPublicKey、FormatPublicKey、WritePublicKeyToFileの3つの関数があります。
誰でも手助けできますか?どうもありがとうございました。
あなたの画像は私のためには機能しませんが、コードのスクリーンショットであれば、そのコードを削除して、代わりにコードに_ **をテキスト** _として入れてください。 –
@VisualVincent、こんにちは、私はイメージを見ることができ、それは質問のテキストです。 – ccy
@VisualVincent、それはコードのものではなく、そのフォーマット要件です。 – ccy