Created
April 15, 2015 02:50
-
-
Save kennonb/2f979ba1e5ad46060328 to your computer and use it in GitHub Desktop.
Convert IIS .pfx to Apache .key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Export the private key file from the pfx file | |
openssl pkcs12 -in filename.pfx -nocerts -out key.pem | |
# Export the certificate file from the pfx file | |
openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem | |
# This removes the passphrase from the private key so Apache won't | |
# prompt you for your passphase when it starts | |
openssl rsa -in key.pem -out server.key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment