Microsoft IIS 6.0 allows an import of key pairs; therefore, you will need to create a .p12 file with Openssl - which contains your private key, and certificate file.
Step 1: Convert your certificate and private into a .p12 file
To convert your separate key and certificate files into a single .p12 file use the following Openssl command:
Openssl pkcs12 -export -out file.p12 -inkey privatekey.key -in certificate.crt
Step 2: Import the backup file to Microsoft IIS 6.0
- Right-click on the Web site in question and select Properties.
- Go to the Directory Security tab > Secure Communications > Server Certificate
- The "Web Server Certificate Wizard" will start up.
- Click on Next.
- Select Import a certificate from a .pfx fileand click on Next.
- Enter the path and file name of the file containing both the Certificate and Private Key file (.pfx/.p12 file) or use the Browse button to browse to the location of the .pfx/.p12 file.
- Select Mark certificate as exportable. This allows you to mark the imported Certificate as exportable. Marking a Certificate as exportable allows the Certificate to be exported to a file for backup.
- Click on Next.
- Enter a password for the Certificate you want to import.
- Click on Next.
- Assign the SSL port for the Web site. (Note: 443 is the default SSL port)
- Click on Next.
- The next page will display the summary of the imported Certificate. Click on Next.
- You will receive a message confirming the successful completion of the import. Click on Finish.
NOTE: Under the "Web Site" tab, make sure that a unique IP address has been assigned to the web site and port 443 has been assigned.