Programmatically add binding on IIS 8 with SNI option

前端 未结 2 1037
梦如初夏
梦如初夏 2021-01-19 02:52

I\'m trying to create bindings for IIS 8 that have the flag SNI checked (Server Name Indication) using Microsoft.Web.Administration library (.NET Framework).

This is

2条回答
  •  北海茫月
    2021-01-19 03:11

    I finally managed to do it using the Microsoft.Web.Administration from the folder %windir%\system32\inetsrv\ but only in Windows 8/Windows 2012 with IIS 8.

    These libraries had the SslFlags option in the Add function for BindingCollection class. There is no documentation from microsoft yet for this new overload, or at least I haven't found it.

    The SslFlags.Sni is available to use in this one and creates the binding with SNI check perfectly.

提交回复
热议问题