Skip to content

Instantly share code, notes, and snippets.

@elvinio
Created July 20, 2015 13:50
Show Gist options
  • Save elvinio/d5c6aba6eae875a00da3 to your computer and use it in GitHub Desktop.
Save elvinio/d5c6aba6eae875a00da3 to your computer and use it in GitHub Desktop.
Convert certificate
# Convert .pfx, .p12 to .pem
openssl pkcs12 -in a.pfx -out a.pem -nodes
# Convert .p7b to .pem
openssl pkcs7 -inform der -in a.p7b -out a.pem
# Remove passphrase
openssl rsa -in a.pem -out b.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment