Based on the IT journey of Michael Rickert

Multiple HTTPS sites hosted on one IIS server with one SSL cert

The Issue:

You have  a wildcard SSL certificate and would like to host two seperate websites in IIS off of the one certificate

The Cause:

IIS 7 only allows one site per SSL certificate by default, denying permission to use a wildcard cert

The Fix:

  1.       Add the sites to IIS manager if not already done so
  2.       Open an elevated cmd prompt on the IIS server you would like to set up the two sites on
  3.       Enter ‘cd C:\Windows\System32\inetsrv’
  4.       Enter the following, all on one line: ‘appcmd set site /site.name:Default Web Site /+bindings.[protocol=’https’,bindingInformation=’*:443:www.mywebsite.com’]
  5.       Enter the above command for each site you would like to use the wildcard cert for, ‘site.name: should be the name of the site you would like to edit, ‘www.mywebsite.com’ should be the header information of the sites website
  6.      If you would like to undo this command, simply swap the ‘+bindings’ to a negative, like so:  ‘appcmd set site /site.name:Default Web Site /-bindings.[protocol=’https’,bindingInformation=’*:443:www.mywebsite.com’]’

Leave a Reply