Importing an IIS .pfx File Into Apache or Other Non-Windows Server


1. The first step is to create a back-up of the IIS Server Certificates to a .pfx File using the OpenSSL Command. The Command will take the Primary and Intermediate Certificates along with the Private Key File into a .pfx back-up File. The Command that should be used is the following: openssl pkcs12 -export -out DigiCertBackup.pfx -inkey your_private_key_file.txt -in your_domain_name.crt -certfile DigiCertCA.crt

2. Next, use the OpenSSL Command to create a unique and separate text file, using the Private Key. The command is as follows: openssl pkcs12 -in mypfxfile.pfx -out outputfile.txt -nodes. You may be required to change the mypfxfile.pfx to the IIS Server Certificates back-up.

3. Step Two will result in a new text file which is saved as outputfile.txt. At this point, you can now open the file using a text editor. The private key will be listed first.

-----BEGIN RSA PRIVATE KEY----- (Block of Random Text) -----END RSA PRIVATE KEY-----

4. Next, Copy and Paste the information from the text editor; and be sure to include the BEGIN and END tags to the new text file. Then SAVE this text file as your_domain_name.key.

5. You can now await the information required to install the certificates on the new server.

Back To Guides