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:
- Add the sites to IIS manager if not already done so
- Open an elevated cmd prompt on the IIS server you would like to set up the two sites on
- Enter ‘cd C:\Windows\System32\inetsrv’
- Enter the following, all on one line: ‘appcmd set site /site.name:Default Web Site /+bindings.[protocol=’https’,bindingInformation=’*:443:www.mywebsite.com’]
- 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
- 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’]’