It can be done.
SSL host headers in IIS 7 allow you to use the same SSL certificate for multiple IIS websites at the same IP address. Through the IIS Manager interface, IIS allows you to associate only one site for each IP address with port 443 using an SSL certificate. If you try to associate a second site with an IP address with the same certificate, IIS 7 will give you an error when starting the site, stating that there is a port conflict. To assign a certificate that will be used by multiple IIS sites at the same IP address, you will need to configure the SSL host headers by following these instructions.
What type of SSL certificate do you need? Since you can use only one certificate, this certificate should work with all the host names of the websites with which you use it (otherwise you will receive a name mismatch error). For example, if each of your IIS 7 websites uses a subdomain of one common domain name (for example, in the example below), you can get a Wildcard certificate for * .mydomain.com, and it will be protected by site1.mydomain.com, site2. mydomain.com etc.
If, on the other hand, your IIS 7 sites use different domain names (mail.mydomain1.com, mail.mydomain2.com, etc.), you will need to obtain a Unified Communications Certificate (also called a SAN certificate).
Configuring SSL Host Headers on IIS 7 Obtain an SSL certificate and install it in IIS 7. For step-by-step instructions on how to do this, see Install an SSL Certificate in Windows Server 2008 (IIS 7.0). After the certificate is installed in IIS, bind it to the first site by IP address. Open a command prompt by clicking the Start menu and typing "cmd" and pressing enter. Go to C: \ Windows \ System32 \ Inetsrv \ by typing "cd C: \ Windows \ System32 \ Inetsrv \" at the command prompt. In the Inetsrv folder, run the following command for each of the other websites on the IP address that the certificate should use (copy both lines):
appcmd set site /site.name:"<IISSiteName>" /+bindings.[protocol='https',bindingInformation='*:443:<hostHeaderValue>'] Replace <IISSiteName> with the name of the IIS site and <hostHeaderValue> with the host header for that site (site1.mydomain.com)
Check each website in a browser. It should display the correct page and show the lock icon without any errors. If it displays the web page of the first IIS site, then the SSL Host havent hosts were configured correctly.
SpoiledTechie.com
source share