« A consultant's gotta eat series: Duck Ragu Recipe | Main | Configuring BizTalk Server for Dynamics AX Integration »

Adding a host header with SSL

There seems to be a bug with IIS manager for IIS 7.5 that you can’t add a binding with SSL through the UI. Rather than do anything crazy like use a wild character (*.mycoolurl.com) try this


Turns out you can only add them by using appcmd.


  1. First you create the binding via appcmd and provide the host header, but don’t set the cert.
  2. In CMD run

    1: C:\windows\system32\inetsrv\appcmd set site /site.name:MyCoolSite


  3. Then run

    1: netsh http add sslcert ipport= certhash=7fa1543a25eff6013ff012837ba4039aae623588



I believe you can make up the appid but the certhash you can get from the Server Certificates screen off of the web server in the IIS manager.

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>