Install SSL certificate to the Server and Binding of SSL certificate to IIS Website

Ahamed Fazil Buhari
 
Senior Developer
January 20, 2018
 
Rate this article
[Total: 0    Average: 0/5]
 
Views
2013

Hi everyone, this is continuation of my previous article “Generate CSR in Windows Server for SSL Certificate”. In this article we will see how to install SSL certificate to your website.

Install SSL Certificate

In my case I have the certificate ready, so I go ahead with how to install SSL certificate in your server.

Step 1: Go to IIS -> Server Certificates -> Complete Certificate Request.

clip_image002

Step 2: Browse for the certificate with .cer extention which you received from SSL certificate provider

clip_image004

Step 3: Click on OK.

clip_image006

Binding Certificate to a Web Site

The final step to add certificate to your website is to bind the certificate for your site in IIS.

Step 1: Go to IIS Manager and if you are creating new site with https then straight away you can select certificate as shown below,

clip_image007

Step 2: To add certificate for existing site. Click on the site name and in right panel under Actions select Bindings…

clip_image009

Step 3: In Site Bindings window, click on Add button and create https site by choosing the certificate which we installed in previous steps.

Enter binding details:

· Type: https

· IP address: leave blank (internal)

· Port: 443

· Host name: same as common name in certificate

· Require SNI: check

· SSL certificate: pick corresponding certificate from the list (name matching)

clip_image011

In some cases, host name could be disabled. In that case – Use the below command to update the host name in your https binding (open the cmd as Administrator and navigate to the following path – OR we can add https site through UI (Please refer the document ‘Ordering SSL for IIS’ inserted under ‘Request for Certificate’ topic for adding https through UI)

o C:\Windows\System32\inetsrv and run the below command

 

o appcmd set site /site.name:YourSiteName /bindings.[protocol=’https’,bindingInformation=’*:443:’].bindingInformation:*:443: YourSiteName

clip_image013

I hope you will find this article useful. Thank you J

Happy Coding

Ahamed

Category : IIS, Windows

Author Info

Ahamed Fazil Buhari
 
Senior Developer
 
Rate this article
[Total: 0    Average: 0/5]
 
Ahamed is a Senior Developer and he has very good experience in the field of Microsoft Technologies, especially SharePoint 2013, 2016 and O365, Azure, ASP.NET, SQL Server, IIS and client ...read more
 

Leave a comment