transferred from:http://www.getvm.net/apache-crt-ssl-convert-to-iis-pfx/
Apache uses the The SSL certificate is. crt format, if your website from Apache to the Windows host IIS, this time to put the original certificate on IIS to use, is not able to directly use this certificate, you first want to convert. crt format certificate into. pfx format, this can be a command on the Linux host Complete the conversion
OpenSSL pkcs12-export-out Ssl2_me.pfx-inkey ssl2_me.key-in ssl2_me.crt
After you run the command, you will be prompted to enter the same password two times, and you can set a password that will be used when you import the certificate on IIS.
Replace the SSL2_ME.CRT in the above command with your own certificate file name, Ssl2_me.key replace it with your own key file name, ssl2_me.pfx replace it with your own PFX certificate name.
Go Apache CRT format SSL certificate converted to the PFX format for IIS