Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hemanth22/fdc99b9089a0b363130a2636ce1617b9 to your computer and use it in GitHub Desktop.
Save hemanth22/fdc99b9089a0b363130a2636ce1617b9 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