This article mainly describes how to add multiple Web sites in IIS and use the same digital signing certificate (win7+iis7.5)
- IIS adds a site site1 with a port number of 80 and a host name of NULL. Such as:
- Create certificate Iis->server certificates–>create self-signed Certificate, enter certificate title
Such as:
- Bind a certificate, such as
Note: Step 5 The selected certificate name should be "*.ucredit", here is a small error.
Open the C:\Windows\System32\drivers\etc\hosts file with Notepad, site1.ucredit.com the domain name with 127.0.0.1
To associate. Such as
You can access the site Site1 by opening the browser input https://site1.ucredit.com .
- Same Step 1, add site2, port number is 80, but this time to enter the hostname site2.ucredit.com, for has been set up,
- With step three, associate the domain name site2.ucredit.com with the 127.0.0.1
- Bind a certificate to a site Site2
Open cmd as Administrator, navigate to directory: C:\Windows\System32\inetsrv
Input: Appcmd set Site "Site2"/+bindings. [protocol= ' https ', bindinginformation= ' *:443:site2.ucredit.com ']
such as: where "Site2" is the site name, site2.ucredit.com is the hostname.
Repeat step 6 if you need to add more than one Web site.
Note: Because it is a native test, you need to configure the C:\Windows\System32\drivers\etc\hosts file to configure the host name on the server.
At this point, the end. Reference Link: https://www.sslshopper.com/article-ssl-host-headers-in-iis-7.html
IIS7 binding multiple HTTPS websites and applying self-signed certificates