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?