Felipe Ferreira

MCT, MCITP Database Administrator, MCPD: Web Developer

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 =)

Comments

How to set SSL host header for wildcard cert in IIS | ASP Scribe said:

Pingback from  How to set SSL host header for wildcard cert in IIS | ASP Scribe

# July 22, 2009 12:06 PM

Martin Kulov said:

hey man,

the correct syntax is:

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

Best

# August 11, 2009 7:12 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)