Posted By

arunpjohny on 09/07/11


Tagged

ssl java-ssl


Versions (?)

Convert PrivateKey & PublicKey pair to Java KeyStore


 / Published in: Java
 

  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  

You need to login to post a comment.