Skip to content

Instantly share code, notes, and snippets.

@jerryjohnjacob
Last active July 19, 2018 21:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerryjohnjacob/65baf91c4568af1494a565529f876835 to your computer and use it in GitHub Desktop.
Save jerryjohnjacob/65baf91c4568af1494a565529f876835 to your computer and use it in GitHub Desktop.
Extracting keys from pkcs12
openssl pkcs12 -in certificates/cert.p12 -out certificates/cert.pem -clcerts -nokeys
openssl pkcs12 -in certificates/cert.p12 -out certificates/key.pem -nocerts -nodes
openssl pkcs12 -in certificates/cert.p12 -out certificates/ca.cert -cacerts -nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment