Skip to content

Instantly share code, notes, and snippets.

@Integralist
Created November 17, 2015 12:57
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save Integralist/0c12b8233666b443b29e to your computer and use it in GitHub Desktop.
Save Integralist/0c12b8233666b443b29e to your computer and use it in GitHub Desktop.
Convert a P12 into a PEM and vice versa
# Convert p12 to pem
openssl pkcs12 -in certificate.p12 -out certificate.pem -clcerts -nodes
# Convert pem to p12
openssl pkcs12 -export -in certificate.pem -out certificate.p12 -passout pass:password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment