http://stackoverflow.com/questions/4217107/how-to-convert-pfx-file-to-keystore-with-private-key

 

keytool -importkeystore -srckeystore mypfxfile.pfx -srcstoretype pkcs12 -destkeystore clientcert.jks -deststoretype JKS

 

openssl pkcs12 -in mypfxfile.pfx -out mypemfile.pem

openssl pkcs12 -export -in mypemfile.pem -out mykeystore.p12 -name "MyCert"

 

 

keytool -v -list -keystore mykeystore.p12 -storetype pkcs12

 

keytool -importkeystore -srckeystore mykeystore.p12 -destkeystore clientcert.jks -srcstoretype pkcs12 -deststoretype JKS

+ Recent posts