Ssl – IIS 7.5 Unable to use self signed certificate on a per web site basis for https binding sharing port 443

httpsiisiis-7.5sslssl-certificate

I'm using SelfSSL7 to create a self signed certificate in IIS 7.5(Win Server 2K8 R2). I have 2 sites in IIS ( the default site and a test site). I ran the following to create the cert.

SelfSSL7.exe /Q /T /I "Default Web Site" /N cn=MyMachineName;cn=localhost /K 1024 /V 18250
SelfSSL7.exe /Q /T /I /S "TestSite" /N cn=myhostheader;cn=myhostheader.mydomain.com /K 1024 /V 18250
appcmd.exe set site /site.name:TestSite /bindings.[protocol='https',bindingInformation=':443:'].bindingInformation::443:myhostheader

This works but the https 443 binding for the "Default Site" ends up using the same certificate as the test site so I'm unable to use SSL for both sites on port 443. This article explains the issue but I can't seem to find a workaround. I would like to use a different self signed certs for SSL per website. How can I achieve this?

Best Answer

This is not possible.

The TechNet forum post you linked involves trying to set up multiple sites on the same wildcard certificate on the same port, which is definitely possible.

However, using two distinct, different certificates on the same port as you are attempting falls into the realm of requiring TLS Server Name Indication. No current version of IIS supports this.