maroph

OpenSSL: PKCS12 file: extract private/public key

Aug 30th, 2016
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.22 KB | None | 0 0
  1. # Extract private key from PKCS12 file
  2. openssl pkcs12 -in keystore.p12 -nocerts -nodes -out privateKey.pem
  3.  
  4. # Extract certificates from PKCS12 file
  5. $ openssl pkcs12 -in keystore.p12 -clcerts -nokeys -out publicKey.pem
Advertisement
Add Comment
Please, Sign In to add comment