@michaelLipscombe 

Entries in SSL (1)

Saturday
Apr022011

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

image

Turns out you can only add them by using appcmd.

image

  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

    /+bindings.[protocol='https',bindingInformation='0.0.0.0:4443:mycoolurl.com']

  3. Then run

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

    appid={4dc3e181-e14b-4a21-b022-59fc669b0914}

     

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.