Skip to content

Instantly share code, notes, and snippets.

@drolfe
Last active September 23, 2015 06:05
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 drolfe/e19c8df3a8f6907f12ce to your computer and use it in GitHub Desktop.
Save drolfe/e19c8df3a8f6907f12ce to your computer and use it in GitHub Desktop.
openssl .pfx to .key .cer .crt
#Creating the certs from pfx
openssl pkcs12 -nocerts -in ssl.pfx -out ssl.key -nodes
openssl pkcs12 -nokeys -clcerts -in ssl.pfx -out ssl.cer -nodes
openssl pkcs12 -nokeys -cacerts -in ssl.pfx -out ssl.crt -nodes
#Checking the certs
openssl x509 -noout -modulus -in ssl.cer | openssl md5
openssl rsa -noout -modulus -in ssl.key | openssl md5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment