Convert SSL Certificates from Apache to IIS
I’m posting this so I don’t need to go hunting on Google (which was surprisingly tight-lipped about the right solution) the next time I have to do this. If you want to convert a certificate issued in the .crt & .key formats for Apache to the .p12 format favored by IIS you need to run this command in linux:
openssl pkcs12 -export -out iis.p12 -inkey apache.key -in apache.crt
Replace IIS / Apache with the appropriate filenames and you’re done. The .p12 file can be directly imported into the Certificates MMC Snap-In on Windows for use in IIS. The command works on any system that can run openssl, including Mac OS X.
Tags: apache, certificate, iis, openssl, ssl
