How do I import a PKCS12 certificate into a java keystore?

18,077

Import alice.p12 into bob.jks

keytool -v -importkeystore -srckeystore alice.p12 -srcstoretype PKCS12 -destkeystore bob.jks -deststoretype JKS

Share:
18,077
Darren
Author by

Darren

Updated on June 05, 2022

Comments

  • Darren
    Darren almost 2 years

    I have a certificate in PKCS12 format. How do I import it into a java keystore file?

  • Akila Uyanwatta
    Akila Uyanwatta over 2 years
    Worked for me (JDK 1.8.0_211)
  • sergpank
    sergpank about 2 years
    Could you please advice what shall I do with JSK storage? Shall I put into .../jre/lib/security/ ?