A blog with focus on experiences with the Windows Client operating systems…
RSS icon Email icon Home icon

  • Solution to have multiple SSL sites on port 443 in IIS

    Posted on February 19th, 2009 By Andreas Stenhall + 1 comment

    Today I faced a problem where I had to put different sites in IIS on the same SSL port which by default is 443. As you might know you cannot set more than one web site to use port 443 in the GUI of IIS Manager, and you can neither specify different host headers there. However you can put more than one web site on the SSL port by using the command line script as stated below. Run it from C:\inetpub\adminscripts but before you do, find out what the identifier for the site you want to enable SSL for is by clicking on “Web sites” in IIS Manager.

    cscript.exe adsutil.vbs set /w3svc/1/SecureBindings

    Make sure that the above command is put and run on one line and you are done. Please note that if you do not have a wildcard certificate installed (*.contoso.com) you will receive certificate warnings for one of the sites, as the certificate name will not match the host name.