This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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.
 
Similar Threads
how do i use a PKCS12 file
extract and save to file certificate and key from pkcs12 file programmatically
use keytool to import pkcs12(.p12) ??
How to change PIN on smart card using Java
KeyStore TrustStore P12 PEM