I have a certificate in PKCS12 format. How do I import it into a java keystore file?
Asked
Active
Viewed 3.6k times
1 Answers
24
Import alice.p12 into bob.jks
keytool -v -importkeystore -srckeystore alice.p12 -srcstoretype PKCS12 -destkeystore bob.jks -deststoretype JKS
-
Worked for me (JDK 1.8.0_211) – Akila Uyanwatta Aug 03 '21 at 05:30
-
Could you please advice what shall I do with JSK storage? Shall I put into `.../jre/lib/security/` ? – sergpank Apr 22 '22 at 12:49