• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Toni Bullon
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic