This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Security and the fly likes Import p12 (certificate) to smart card. Keystore, pkcs11, etc. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Import p12 (certificate) to smart card. Keystore, pkcs11, etc." Watch "Import p12 (certificate) to smart card. Keystore, pkcs11, etc." New topic
Author

Import p12 (certificate) to smart card. Keystore, pkcs11, etc.

Toni Bullon
Greenhorn

Joined: Jun 09, 2011
Posts: 5
Hello,

I want to import a certificate (. p12) to the smart card. I have already created the keystore using sunpkcs11 provider, etc., but I don't know how to import a new certificate from the machine to the card.

I've been looking keystore functions with setKeyEntry and others but I don't know how exactly works. All I see is for working with .cer + key files, but I want to use a pfx or p12 file.

Anybody can help me or advise me on this or any other way?

Is it necessary to pass the p12 JKS first? I just have a lot of doubts.

I have seen that there is a pkcs12keystore class but I don't know where I have to use one or the other.

Any idea or suggestion?
I have no problems getting information from the smart card. I can read, the problem is to write into the card.

Thank you very much.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Import p12 (certificate) to smart card. Keystore, pkcs11, etc.