简体   繁体   English

如何通过 APDU 命令将 X509 证书存储在 SmartCard 中

[英]How could store X509 certificate in SmartCard by APDU command

I'm looking to write the windows logon certificate on VirtualSmartCard by APDU.我希望通过 APDU 在 VirtualSmartCard 上编写 windows 登录证书。 I already found the command structure How to send a command APDU to a HCE device?我已经找到了命令结构How to send a command APDU to a HCE device? also read the document about the APDU ( https://cardwerk.com/smart-card-standard-iso7816-4-section-6-basic-interindustry-commands/ ), but couldn't find any specific command for X.509 certificate.还阅读了有关 APDU 的文档( https://cardwerk.com/smart-card-standard-iso7816-4-section-6-basic-interindustry-commands/ ),但找不到 X.509 的任何特定命令证书。

but couldn't find any specific command for X.509 certificate.但找不到 X.509 证书的任何特定命令。

That's right.这是正确的。 But that's just because a certificate to the smart card is just data .但这只是因为智能卡的证书只是数据 The verification etc. of the certificate is performed on the host, not on the smart card.证书的验证等是在主机上进行的,而不是在智能卡上。 So usually it is stored in a file (an EF in ISO 7816-4 terms).所以通常它存储在一个文件中(ISO 7816-4 术语中的 EF)。 If that file needs to be found, it can be referenced by putting a PKCS#15 compatible file structure on the card.如果需要找到该文件,可以通过在卡上放置一个 PKCS#15 兼容文件结构来引用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM