Skip to content

Instantly share code, notes, and snippets.

@mtrunkat
Last active March 5, 2020 12:04
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 mtrunkat/e35d33beb6b7fb60316144c0e1b9fe14 to your computer and use it in GitHub Desktop.
Save mtrunkat/e35d33beb6b7fb60316144c0e1b9fe14 to your computer and use it in GitHub Desktop.
Conversion pf p12 certificate to public and private pem key
# Get private key
openssl pkcs12 -in yourP12File.pfx -nocerts -out privateKey.pem
# Get public key
openssl pkcs12 -in yourP12File.pfx -clcerts -nokeys -out publicCert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment