Peyman
Peyman

Reputation: 3138

How could store X509 certificate in SmartCard by APDU command

I'm looking to write the windows logon certificate on VirtualSmartCard by APDU. I already found the command structure 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.

Upvotes: 1

Views: 709

Answers (1)

Maarten Bodewes
Maarten Bodewes

Reputation: 94038

but couldn't find any specific command for X.509 certificate.

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). If that file needs to be found, it can be referenced by putting a PKCS#15 compatible file structure on the card.

Upvotes: 1

Related Questions