Skip to content

Instantly share code, notes, and snippets.

@limboinf
Created July 31, 2015 03:34
Show Gist options
  • Save limboinf/a3d5262bd7c935d9c1c7 to your computer and use it in GitHub Desktop.
Save limboinf/a3d5262bd7c935d9c1c7 to your computer and use it in GitHub Desktop.
p12 to pem
openssl pkcs12 -in path.p12 -out newfile.crt.pem -clcerts -nokeys
openssl pkcs12 -in path.p12 -out newfile.key.pem -nocerts -nodes

After that you have:

certificate in newfile.crt.pem

private key in newfile.key.pem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment