Don’t know how to install SSL certificate in IIS 7 windows 2008 server? We can help you.
Windows Server 2008 (IIS 7) is one of the widely used, and we are getting many queries regarding SSL installation on it.
As a part of our Server Management Services, we assist our customers with several SSL queries.
Today, let’s see how our Support Engineers do this for our customers.
What is IIS?
Internet Information Services(IIS) is a web server that runs on the Microsoft .NET platform on the Windows OS.
It’s stable and versatile, and it’s been widely used in production for many years.
IIS 7 and above are the product name used for referring to the versions of Internet Information Services (IIS).
How we generate CSR for installing SSL certificate in IIS 7
Recently, one of our customers approached us with the request to install an SSL Certificate in the IIS 7 Windows 2008 server.
In order to begin, first, we have to generate CSR.
To do the same, we follow the below steps:
- Open the IIS manager.
- Then, select the server node in the treeview and double-click the Server Certificates feature in the list view.
- Then, from the Actions pane on the top right, we select Create Certificate Request. Now the Distinguished Name Properties dialog box opens.
- There, we fill in all the details and click OK.
- The next screen of the wizard will ask to choose cryptography options. The default Microsoft RSA SChannel Cryptography Provider is fine and a key bit-length of 2048.
- Finally, we specify a file name for the certificate request and save it to a location.
- At last, using the CSR generated we purchase a Certificate.
Steps for Installing the SSL certificate in IIS 7
Next is Installing the certificate. Given are the steps we follow to perform the installation.
- Firstly, open the ZIP file containing our certificate. Then, save the file our_domain_name.cer to the desktop of the web server we are securing.
- Next, click on Start >> Administrative Tools>> Internet Information Services (IIS) Manager.
- Then, click on the server name.
- From the center menu, we double-click the “Server Certificates” button in the “Security” section.
- Then, from the “Actions” menu, click on “Complete Certificate Request.” This will open a Complete Certificate Request wizard.
- Browse our_domain_name.cer file and enter a friendly name.
- Click “OK” will install the certificate to the server.
- Once done, our Engineers assign that certificate to the appropriate website using IIS.
- From the “Connections” menu in the main Internet Information Services (IIS) Manager window, we select the name of the server to which the certificate was installed.
- And, under “Sites,” we select the site to secure with SSL.
- After that, from the “Actions” menu, click on “Bindings.” This opens the “Site Bindings” window.
In the “Site Bindings” window, clicked “Add…”. Which will open the “Add Site Binding” window.
- Under “Type”, choose https. T. The “SSL Certificate” field should specify the certificate that was installed in the step before.
- Click ”OK.”
- Hence, the SSL certificate is installed, and the website configured to accept secure connections.
Few common errors
Moving ahead, let us have a look at a few errors we may come across during these processes.
Cannot find the certificate request associated with this certificate file.
This error occurs when we try to install a certificate using Microsoft Internet Information Services (IIS) 7.0 Manager.
We may come across either of these messages:
Error message 1:
Cannot find the certificate request associated with this certificate file. A certificate request must be completed on the computer where it was created.
Error message 2:
There was an error while performing this operation Details: CertEnroll::CX509Enrollment::p_InstallResponse: ASN1 bad tag value met. 0x8009310b (ASN:276)
The certificate is installed correctly despite the error message.
This issue occurs because the IIS Manager performs a lookup operation to look for a friendly name of the certificate during the installation.
However, the code that performs this lookup operation misses this specific case, and it does not know how to retrieve the friendly name of a certificate in a PKCS#7 file. That is why the lookup operation fails, and we receive the error message.
To resolve this problem, add a friendly name to the certificate:
- Select Start >> Run, certmgr.mmc >> OK.
- Select File >> Add/Remove Span-ins >> Certificates >> Add >> OK.
- Then select Computer account >> Next >> Finish >> OK.
- Expand Certificates (Local Computer), and Personal, and then Certificates.
- Right-click the certificate, and then select Properties.
- Edit the Friendly name field.
The request or private key cannot be found
While installing an SSL certificate using IIS 7.0, we may also receive the error:
The request or private key cannot be foundThe request or private key cannot be found
An incorrect certificate or server mismatch can cause this error.
In such a case, make sure we use the correct certificate and that we are installing it to the same server that we generated the CSR on.
However, if we are sure of those two things, we may just need to create a new Certificate Request and reissue/replace the certificate.
[Need assistance in installing IIS? We’ll help you.]
In short, we discussed in detail how to install SSL Certificate in IIS 7 windows 2008 server and saw how our Support Engineers help customers in installing it.