Skip to content

Instantly share code, notes, and snippets.

@cactaceae21
Last active September 14, 2017 10:47
Show Gist options
  • Save cactaceae21/3532207d9bc271084ea1a534acb4b1b2 to your computer and use it in GitHub Desktop.
Save cactaceae21/3532207d9bc271084ea1a534acb4b1b2 to your computer and use it in GitHub Desktop.
SSL Key export from PFX #ssl #openssl #security
## Uses exported certificates from CertMGR.exe
## Export private keys from PFX
openssl pkcs12 -in filename.pfx -nocerts -nodes -out filename.key
## Export public keys from PFX
openssl pkcs12 -in filename.pfx -clcerts -nokeys -out filename.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment