Finally you have chosen IIS
Import your certificate in the 'awesome' windows IIS
OK, maybe you are enforced to use IIS as web server, then, i would like to know you that my thoughts are with you.
So, let's see how to import an owned certificate in IIS environment.
Apllication and files needed:
- OpenSSL (http://www.openssl.org/)
- Certificate (.crt) file
- Private key (.key) file
Are you ready? I hope it...
1- First of all we should create a .pfx file (certificate + private key).
2- Locate your .crt and .key file.
3- Using OpenSSL:
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile more.crt
- pkcs12 - utility for PCKS#12 files in OpenSSL
- -export -out certificate.pfx - export and save the PFX file as certificate.pfx
- privateKey.key - your private key
- certificate.crt - use certificate.crt as the certificate the private key will be combined with
- -certfile more.crt – This is optional, this is if you have any additional certificates you would like to include in the PFX file.
4- When running the above command, you are required to generate a password for exporting file, please don't forget it.
5- You will see a new file, named 'certificate.pfx'.
6- Open IIS dashboard, then in Connections column select your server.
7- Click, on central part of window, Server Certificates icon.
8- After open it, stroke a right click and chose import from 'Actions' menu.
9- Select your newly created 'certificate.pfx' and write your export password down.
10- Click OK.
Now, you are able to see your certificate in the list, so, you can choose it in Sites/Bindings section.
Thanks to: ssl.com