loading...

Microsoft IIS 10.0 – Testing SSL websites

Installing Apache On CentOS 8

In this recipe, we are going to open Internet Explorer on WIN2016IIS and open mysite.com. We will also verify the SSL certificate we created and configured on mysite.com.

Getting ready

To step through this recipe, you will need a running IIS 10.0 server, SSL-configured website mysite.com, and an administrator account to make changes in IIS 10.0.

How to do it…

  1. Go to WIN2016IIS and log in to the IIS 10.0 server WIN2016IIS. Open the server manager and go to the Tools menu.
  2. Open IIS Manager and expand WIN2016IIS. You will get the Application Pools and Sites. Expand Sites. You will the website mysite.com listed.
  3. Right-click on mysite.com and click on Explorer. You will get the mysite.com website’s physical directory, as shown here:
  1. We’ve pasted the iisstart.htm and iisstart.png files inside the mysite physical directory. Now you have to make a host entry for mysite.com so that we can access it by name.
  2. Go to the WIN2016IIS server’s C:\Windows\System32\drivers\etc location. You will see the hosts file. Open it in Notepad, and add an entry for 172.16.15.60 and website name mysite.com, as shown here:
  1. Save the hosts file and close it.
  2. Open Internet Explorer and type https://mysite.com, and you will get a certificate error warning ignore the warning, it is coming because we have our self-signed certificate only on local Server, warning message will not be displayed If we have purchased a certificate installed, you shown in figure.
  1. Click on Continue to this website, and you will get redirected to the mysite.com home page, as shown here:
  1. You can see here that we’re accessing the website with the https protocol and a certificate (it’s marked in red here as it is a local server certificate and not valid for the outside world–just for demonstration). Click on the certificate, and you will get the certificate properties:
  1. You can see here that we have the certificate details Issued to, Issued by, Valid from, and valid to. Click on OK.

How it works…

In this recipe, we opened Internet Explorer on server WIN2016IIS and copied the iisstart.htm and iisstart.png files to the mysite.com physical directory. We created a hosts file entry and opened https://mysite.com. We also verified the SSL certificate we created and configured on mysite.com.

Comments are closed.

loading...