0

We currently use appcmd.exe to create IIS websites on the fly with the necessary http/https bindings, e.g.

appcmd add site /name:www.example.com /bindings:"http://www.example.com:80","https://www.example.com:443" /physicalPath:"c:\sites\www.example.com"

Is there a way to tell the https binding to use SNI?

We're using IIS8.5 / Windows 2012 R2

0

I have yet to be able to determine the necessary delimiter to use when specifying the bindings attribute values with the add site appcmd, however I have accomplished this with the set site appcmd as follows:

appcmd set site /site.name:www.example.com /+bindings.[protocol='https',bindingInformation='*:443:www.example.com',sslFlags='1']

Seems like there should be a way to specify the sslFlags with the add site command as well, but I haven't figured it out yet.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.