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

Weber Grill Parts said:

I think the data written in your write-up is truly exceptional. I've been operating on a preliminary investigation mission regarding this subject and your blog  really helped with quite a few concerns that I had. I'm creating a time period paper for school and I?m currently subsequent many blogs for evaluate.

--------------------------------------------

my website is  

http://www.hancao.us

Also welcome you!

# November 18, 2010 7:30 PM

must have ipad accessories said:

You have to believe in yourself . That's the secret of success.

-----------------------------------

# December 19, 2010 4:12 PM

ipad app reviews said:

-----------------------------------------------------------

"Hello to all I cannot realize how you can increase your site in my rss reader. Support me, please"

# January 2, 2011 2:21 PM

ipad case said:

-----------------------------------------------------------

Hello there I like your put up

# January 7, 2011 3:44 PM

cordless phones reviews said:

Genuinely like your websites details!  Absolutely a great deal of info which is extremely handy.  Proceed to hold publishing and i'm gonna proceed  reading through!  Cheers.

--------------------------------------------------------------------  

I have a <a href="ericsreviews.com/">slr camera reviews</a> Website,i love him.Mania !You are welcome to look!

# January 16, 2011 12:57 PM

Amey Mulay said:

Just once query :

The command corrected by Martin Kulov states :

/site.name:<SiteName>

Wherein, in IIS it displays as SharePoint - 43666

It that what I need to provide in double-quotes ?

so the command will be something like :

appcmd set site /site.name:"SharePoint - 43666" /+bindings.[protocol='https',bindingInformation='*:443:<host header>']

# January 18, 2011 11:02 AM

BattPattemo said:

# November 25, 2011 8:56 PM

Unduroded said:

# December 6, 2011 2:41 AM

Ideachecrence said:

<a href=calivit.com/.../ac-zymes>ac zymes</a>

# December 6, 2011 8:13 PM

neoppyesser said:

<a href=http://www.loody.pl> maszyny do lodow </a>

# December 20, 2011 11:18 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)