Importing an IIS .pfx file certificate into Apache
MWahl | April 3, 2010 | 9:39 pmTo export the private key from the Windows IIS server to your non-windows-based machine, you must extract the private key from a Windows .pfx backup certificate. Use the OpenSSL utility to extract the private key from the .pfx backup file:
- First backup the certificate you have working on your IIS server to a .pfx file.
- Second, use the following OpenSSL command to create a new text file from which you can separate the Private Key:
openssl pkcs12 -in mypfxfile.pfx -out outputfile.txt -nodesmypfxfile.pfx is the certificate backup from your IIS server.
- The above command would have created a text file named outputfile.txt. Open this file with a text editor and you will see the private key listed first:
-----BEGIN RSA PRIVATE KEY-----
(Block of Random Text)
-----END RSA PRIVATE KEY----- - Copy and paste all of the private key, including the BEGIN and END tags to a new text file and save it as domain_name.key

lopsa




