aspose file tools*
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
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
use keytool to import pkcs12(.p12) ??
extract and save to file certificate and key from pkcs12 file programmatically
how do i use a PKCS12 file
How to change PIN on smart card using Java
KeyStore TrustStore P12 PEM