Skip to content

Instantly share code, notes, and snippets.

@iSkore
Created April 27, 2018 09:31
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 iSkore/40f23accf1d34828a0d69e23efa2b821 to your computer and use it in GitHub Desktop.
Save iSkore/40f23accf1d34828a0d69e23efa2b821 to your computer and use it in GitHub Desktop.

KEY and CRT from PFX:

  • openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]
  • openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]

Encrypted KEY to decrypted KEY: openssl rsa -in [keyfile-encrypted.key] -out [keyfile-decrypted.key] PEM from key: openssl rsa -in [keyfile-encrypted.key] -outform PEM -out [keyfile-encrypted-pem.key]

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