I've got a bit of a problem with multiple bindings for a wildcard certificate in IIS6. I want to be able to bind www.mydomain.org.uk and mydomain.org.uk to a single site.
I can at present have either one or the other.
I use this command:
C:\Inetpub\AdminScripts>cscript.exe adsutil.vbs set /w3svc/1/SecureBindings ":443:www.mydomain.org.uk"
but if I run it again to add:
C:\Inetpub\AdminScripts>cscript.exe adsutil.vbs set /w3svc/1/SecureBindings ":443:mydomain.org.uk"
Then it overwrites the original host header binding.
I've got two host headers in IIS itself.
Previously I had a domain certificate on this server which worked fine but the wildcard one is not working.
I tried C:\Inetpub\AdminScripts>cscript.exe adsutil.vbs set /w3svc/1/SecureBindings ":443:mydomain.org.uk,www.mydomain.org.uk"
this doesn't work. I'm looking at the vb script in adsutil but I can't really remember vb script as I've not used it for a very long time