Using Let'S Encrypt Redirect From HTTP To HTTPS: Step1: Install IIS (Internet Information Services)
Using Let'S Encrypt Redirect From HTTP To HTTPS: Step1: Install IIS (Internet Information Services)
Using Let'S Encrypt Redirect From HTTP To HTTPS: Step1: Install IIS (Internet Information Services)
Below are the detailed instructions to follow on each tab of Add roles and
features wizard.
- Before You Begin: This tab explains the details of Add roles and feature
wizard. You can read it or just click Next to get to the next tab.
- Installation Type: Choose “Role-based or feature-based installation” and
click Next.
- Server Selection: Select the option “Select a server from the server pool”
and click on your server from the list of “Server pool”.
- Server Roles: Scroll down on the list of roles to find the “Web Server
(IIS)”. When prompted for the required features, leave the default options
checked and click on Add Features button. Click the Next button.
- Features: Leave the default options checked here also and click the Next
button without making any changes.
- Web Server Role: Leave the default options checked as we are creating a
basic web server only and click Next button for proceeding to the
confirmation screen.
- Confirmation: Review the changes once and click on the Install button
to start the installation.
Step2: Adding Website to IIS
- Before you begin: create an A record on your domain
- Open the IIS Manager by searching IIS in the search menu. Expand
HOST → Sites on the left pane, you will find the default web site. To add
a new site in IIS web server, click on the Add website link from the right
panel
- On Add Website prompt, Provide a Site name to identify your site. Let
the value of Application pool remain the same as the Site name. Put the
path of the directory. Leave the default value in Binding Type, IP address
and Port. Put the actual domain name in Host name field. Click the button
OK to add the site and start it.
Step3: Download Let’s Encrypt Client
- There are many different client applications available for generating Let’s
Encrypt certificates. In this tutorial, we will use win-acme client as it is a
very simple, open-source and actively developed command-line
application. It not only generates the certificates but also installs and
renews them automatically.
- Download the latest version of the application on the server from its
Github release page. On the release page, scroll down to find the assets
and download the zip archive with the name win-acme.v2.x.x.x.zip . If
you are having trouble using internet explorer, you can follow this tutorial
to install Chrome on the server. Once downloaded, extract the application
and move it to some safer location for future use.
Conclusion
In this detailed tutorial, we have installed the IIS server on Windows server
2019. We also created a demo website and added it into the IIS server. Finally,
we generated and installed Let’s Encrypt SSL certificate on the demo website
we created