How to Configure SSL Host Headers in IIS 7

SSL Host Headers in IIS 7 allow you to use one SSL certificate for multiple IIS websites on the same IP address. Through the IIS Manager interface, IIS only allows you to bind one site on each IP address to port 443 using an SSL certificate. If you try to bind a second site on the IP address to the same certificate, IIS 7 will give you an error when starting the site up stating that there is a port conflict. In order to assign a certificate to be used by multiple IIS sites on the same IP address, you will need to set up SSL Host Headers by following the instructions below.

1. Obtain an SSL certificate and install it into IIS 7. For step-by-step instructions on how to do this, see Installing an SSL Certificate in Windows Server 2008 (IIS 7.0).

2. Once the certificate is installed into IIS, bind it to the first site on the IP address.

3. Open the command prompt by clicking the start menu and typing “cmd” and hitting enter.
4. Navigate to C:\Windows\System32\Inetsrv\ by typing “cd C:\Windows\System32\Inetsrv\” on the command line.
5. In the Inetsrv folder, run the following command for each of the other websites on the IP address that need to use the certificate (copy both lines):

appcmd set site /site.name:”” /+bindings.[protocol=’https’,bindingInformation=’*:443:’]

Replace with the name of the IIS site and with the host header for that site (site1.mydomain.com)

6. Test each website in a browser. It should bring up the correct page and show the lock icon without any errors. If it brings up the web page of the first IIS site, then SSL Host Headers haven’t been set up correctly.

 

References:
http://www.sslshopper.com/article-ssl-host-headers-in-iis-7.html
http://blogs.msdn.com/b/drnick/archive/2008/07/09/configuring-ssl-host-headers.aspx

Advertisements

3 thoughts on “How to Configure SSL Host Headers in IIS 7

  1. Hi there, I discovered your blog by means of Google whilst searching for a similar matter, your site got here up,
    it appears good. I have bookmarked it in my google bookmarks.

    Hi there, simply turned into aware of your blog thru Google,
    and found that it’s truly informative. I’m gonna watch out for
    brussels. I will be grateful if you continue this in
    future. Lots of other folks will be benefited from your writing.

    Cheers!

  2. Hey There. I found your blog using msn. This is a very well written article.
    I will make sure to bookmark it and return to read more of
    your useful information. Thanks for the post.
    I’ll certainly comeback.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s