How to set SSL host header for wildcard cert in IIS

argh.. I always forget how to do this…

IIS 6 -

cscript C:\Inetpub\AdminScripts\adsutil.vbs set /w3svc/<SiteId>/SecureBindings ":443:<HostHeader>"

IIS 7 -

appcmd set site /site.name:<SiteName> /bindings.[protocol='https',bindingInformation='*:443:'].bindingInformation:*:443:<HostHeader>

you can find “appcmd” in the c:\windows\system32\inetsrv folder

and why should I want to do this? This is for cases when you have a wildcard certificate (a SSL certificate valid for an entire domain: *.domain.com) and you want to set up several websites on the same server to use this certificate, all of them listening in the default port ( 443 ).

see ya folks =)

5 Comments

Comments have been disabled for this content.