Configuring Multiple SSL Certificates in IIS7.0

I found this awesome article on how to setup multiple SSL certificates on the same IIS Server.  I have several sites I host on my web servers and have always had the problem of redirection to the first SSL certificate site. Here's how it works:

  • Install your SSL certificates
  • In IIS 7.0, for each site, create the SSL bindings pointing to your certificates (note how you can't set the host headers here – why microsoft why?)
  • Use the following command to "update" the host header:
    • appcmd set site /"" /bindings.[protocol='https',bindingInformation='*:443:'].bindingInformation:*

the searches for the site name that displays in IIS manager
the bindings searches for the binding in IIS that matches protocol, IP, port, host header (https, *, 443, <null>)
the final "bindingInformation" sets the binding information updating the host header to what you want

Reference this page for more info:

Leave a Reply