Mah*_*din 2 windows iis powershell powershell-2.0 ansible
我是Windows PowerShell的新手.我正在尝试将IIS的默认网站的SSL设置更改
Required SSL = false and client certificate = ignore为
Required SSL = true and client certificate = accept使用PowerShell(我必须将其配置为ansible playbook)我已搜索但未获得任何解决方案.
请帮助.任何线索或解决方案将不胜感激.:) 谢谢
Mat*_*sen 10
使用Set-WebConfigurationcmdlet.有一个伟大的上IIS.NET配置参考你可以用它来找到有效的值-在这种情况下Ssl和SslNegotiateCert:
Set-WebConfiguration -Location "[sitename]" -Filter 'system.webserver/security/access' -Value 'Ssl,SslNegotiateCert'
Run Code Online (Sandbox Code Playgroud)