Convert PrivateKey & PublicKey pair to Java KeyStore


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  1. cat key.pem cert.pem ca-cert.pem | openssl pkcs12 -export -out cert.pkcs12 -noiter -nomaciter -name client1
  2.  
  3. keytool -importkeystore -deststorepass changeit -destkeypass changeit -destkeystore certjks -srckeystore cert.pkcs12 -srcstoretype PKCS12 -srcstorepass changeit -alias client1

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.