我正在用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 我正在用VisualBasic.net.How编写代码,我能在代码和输出中格式化吗?我创建了一个名为PublicKey的类,其中有三个函数,ExportPublicKey、FormatPublicKey和WritePublicKeyToFile。
有人能帮忙吗?非常感谢。
发布于 2017-06-28 19:48:25
您所提供的是终端中用于验证CA私钥签名的颁发者公钥证书所需的最低数据。在终端上,您将获得CA公钥列表,该列表将与卡片中的数据匹配(使用RID和card指数),获得正确的CA公钥并打开证书。但是您的要求“格式化CA公钥并输出它”对我来说毫无意义。颁发者公钥证书的格式如下。

在HSM 9000上,生成证书的命令将是EW,但是我从未使用过它。
备注:以上是我对你的问题的理解。如果您认为我的理解满足了您的要求,请阅读解释离线数据身份验证的整个部分。这是非常有趣的。否则轻轻忽略;)
https://stackoverflow.com/questions/44764271
复制相似问题