• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic