How do I install an SSL certificate on Windows Server 2012 R2 (IIS 8.5)?
How do I install an SSL certificate on Windows Server 2012 R2 (IIS 8.5)?
This guide describes the process of installing an SSL certificate on a Windows Server 2012 R2 server running Internet Information Services (IIS) 8.5.
Before you begin
Make sure you have:
The issued SSL certificate (.cer file).
The Private Key generated when the CSR was created.
Administrative access to the Windows Server.
Access to IIS Manager.
Important: The certificate must be installed on the same server where the CSR was originally generated. Otherwise, IIS will not be able to associate the certificate with its corresponding Private Key.
Step 1: Install the SSL certificate in IIS
Extract the ZIP archive containing your SSL certificate and save the .cer file on the server.
Open Internet Information Services (IIS) Manager.
Select the server name from the left-hand menu.
Double-click Server Certificates in the center pane.
From the Actions menu on the right, click Complete Certificate Request.
Browse and select the .cer file you received after the issuance of your SSL certificate.
Enter a Friendly Name to help identify the certificate.
Select the appropriate certificate store and click OK.
If an error appears during installation
On some IIS 8.x installations, you may see the following message: Failed to remove the certificate
Although this message appears, the certificate is often installed successfully.
If this happens:
Close the error message.
Press F5 to refresh the certificate list.
Check whether the new certificate appears under Server Certificates.
If it does, continue with the next step.
Step 2: Assign the certificate to your website
In IIS Manager, select Sites from the left-hand menu.
Locate the website where you want to enable SSL.
From the Actions menu, click Bindings.
Click Add.
Configure the binding as follows:
Type: HTTPS
IP Address: The website IP address or All Unassigned
Port: 443
SSL Certificate: Select the certificate you installed earlier
If multiple SSL-enabled websites share the same IP address, enable: Require Server Name Indication (SNI)
Click OK.
Step 3: Verify the SSL installation
Once the installation is complete:
Open a web browser.
Visit your website using HTTPS.
Example: https://www.example.com
Verify that the padlock icon is displayed.
Confirm that no certificate warnings are shown.
Ensure that the certificate matches the correct domain name.
If you continue to experience issues
If the SSL certificate is not working correctly:
Verify that the certificate was installed on the server where the CSR was generated.
Ensure that the HTTPS binding uses the correct certificate.
Confirm that port 443 is allowed through the server firewall.
Verify that any required intermediate certificates have been installed correctly.
If certificate reissuance is required, generate a new CSR and follow the reissue process provided by your Certificate Authority.
Helpful tip
After installing the SSL certificate, it is recommended to test your website from multiple browsers and devices to ensure that the certificate is trusted and working properly for all visitors.