Convert Apache/OpenSSL HTTPS Certificate to IIS

How do I export my KEY file from Apache for use with Microsofts IIS?

The following command will convert your Apache Key file to one that Microsoft IIS can recognise:

openssl rsa -in ApacheKeyFileName.key -out IISKeyFileName.key -outform NET


3 Comments

  1. elliot says:

    This is kewl as it saves you having to pay for a new certificate and go through process of generating an IIS CSR in order for your cert authority to generate you an IIS certificate. Even if ‘your’ cert auth does it for free it saves having to wait for them to do it.

    Just copy the cert on the d0ze box and right-click to install.

    This also makes it easier to make DIY certs.
    As again you dont need to create the IIS CSR.
    Just make your dummy OpenSSL web cert and convert to IIS format.

  2. elliot says:

    YUK!
    The import works – but IIS wont use it as there is no associated private key… gay

    doh!
    but anyway here is the REAL way to convert an apache SSL certificate to IIS format:

    openssl pkcs12 -export -in server.crt -inkey server.key -out IIS_server.p12

  3. Brice says:

    In response to “YUK ..” – the original post was for converting the private key, which you would likely need to do *before* importing the converted *certificate*.

Leave a Reply