Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 846
Darren Avatar asked Aug 20 '15 10:08

Darren


People also ask

Does Java support PKCS12?

PKCS12, this is a standard keystore type which can be used in Java and other languages.


1 Answers

Import alice.p12 into bob.jks

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

like image 144
Darren Avatar answered Sep 24 '22 21:09

Darren