问题
Is it possible to copy a certificate from a smart card to the computer and use it to login to a certain site.
On mac, those certificates appear in Keychain and they can be saved to disk, but I'm not sure how to force a site to prompt a dialog screen to choose the certificate. When the smart card is connected, the prompt somehow appears and asks to choose a certificate.
回答1:
The smartcard contains a key pair composed by a private key and a public key wrapped into a X509 certificate.
It is possible to export the certificate and copy to your laptop but to identify, sign or decrypt it is necessary to use the private key. The private key is usually generated on the smartcard and is not extractable. This is part of the security that the card provides: All operations are performed inside the card
来源:https://stackoverflow.com/questions/48064019/copying-a-certificate-from-a-smart-card-to-computer