The purpose of the SSL Certificate is to secure or encrypt communication between the client and the website. In this article, client represents your browser such as Internet Explorer, Google Chrome, or Firefox, etc. Website is any website that you are accessing from server on which SSL Certificate is installed. In this blog, we will get and install a certificate from the Let’s Encrypt certificate authority that provides free SSL certificates.
Following are the prerequisites for installing SSL Certification:
1. IIS Web Server – IIS Web Server should be running and serving websites and web APIs.
2. Add a Web Site or a Web API – Add and configure web API or website with HTTP and HTTPS. Before installing SSL Certificate, a website or web API can be accessed using HTTPS but it will exchange data in plain text and the browser will indicate it by a cross on the padlock at the start of the address bar. To apply certificate we have added “mysite” with the following ports and protocols:
HTTP 8014 & HTTPS 414
3. Open Port on Windows Firewall – Open the ports 8014, 414, and 80 on Windows Firewall.
4. Port Forwarding on DSL Router/Azure Portal – Open the ports 8014, 414, and 80 on Azure Portal for the VM on which IIS Web Server is running. If using your server then open the above ports on the DSL router and forward these ports by the IP of the local server.
Note: Port 80 must be opened because the SSL Certificate application communicates and validates the certificate through this port.
5. Public IP – Find and note the public IP of your ISP. For example, 220.127.116.11
6. DNS A Record on your Domain – Create a DNS A Record on the domain that will be used as hostname for the website/web API. For example
7. Update Website Binding with DNS A Record – Now edit binding of the website/web API and add HTTPS protocol with port 414, add mysite.yourdomain.com in the hostname, and IIS Express Development Certificate under SSL Certificate