Hello everyone!
I'm working to a thesis project and I need to create and import certificate and private key into an empty Smart Card that I want to use for Digital Signature.
I create certificate and key with Keytool and I signed both with OpenSSL Demo CA. After, I use OpenSSl to create the PKCS#12 certificate for the smart card, but the format isn't correct and the application for the signature return CKR_DEVICE_ERROR.
Could you help me?
PKCS#12 contains the private key and the Certificate.
You should separate them and then import the two pieces in the card.รน
See this page on our wiki:
http://wiki.ncryptoki.com/How-to-import-a-pfx-or-a-p12-file.ashx