Thursday, January 20, 2011

IIS7: How to import public key and private key as two seperate files?

We have a client who is directing their traffic to our web servers and needs us to use their wildcard SSL certificate. They gave it to me in two pieces though, one is the public key (.cer) and another file containing the private key (.key). I can't figure out how to get these two to come together in IIS so I can bind it to a site. Assistance is greatly appreciated. Thanks!

  • You need to load the certificate into the certificate store on your computer. The certificate store is an MMC snap-in.

    From JD
  • You may need to use OpenSSL to convert the file formats to PFX and then use the Certificates MMC snap-in to import them into the local computer's personal store.

    The OpenSSL command is something like this -

    openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt
    
    From Doug Luxem
  • You could ask your client if the certificate could be exported as .pfx file. You can easily import the pfx file using IIS Manager.

    Here is a link to a tutorial: PFX Export/Import Explained - How to Import and Export your SSL Certificate in IIS 7

    From splattne
  • You'll just need to convert the separate certificate files to a .pfx to import it into IIS: https://www.sslshopper.com/ssl-converter.html

    From Robert
  • openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt

    This one is the perfect answer. Now I can use a common UCC ssl certificate installed on both Linux and Windows servers.

    Cool fix !! Linux Rocks :-)

    From Liju

0 comments:

Post a Comment