windows - 使用 powershell 更改 IIS SSL 设置

标签 windows powershell iis ansible powershell-2.0

我完全不熟悉 Windows PowerShell。 我正在尝试更改 IIS 的默认网站的 SSL 设置 Required SSL = false and client certificate = ignoreRequired SSL = true and client certificate = accept 使用 powershell(我必须将其配置为 ansible playbook) 我已经搜索但没有得到任何解决方案。

enter image description here

请帮忙。任何线索或解决方案将不胜感激。 :) 谢谢你

最佳答案

使用 Set-WebConfiguration cmdlet。有一个很棒的configuration reference on IIS.NET您可以使用它来查找有效值 - 在本例中为 SslSslNegotiateCert:

Set-WebConfiguration -Location "[sitename]" -Filter 'system.webserver/security/access' -Value 'Ssl,SslNegotiateCert'

关于windows - 使用 powershell 更改 IIS SSL 设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45433282/

相关文章:

php - 我想使用 at 命令和 php 从我的 win 8 操作系统发送短信

powershell - 如何推送企业范围的 PowerShell 配置文件自定义?

powershell - 尝试导入模块时故意使模块失败

asp.net - IIS URL 重写规则使用条件

windows - 在 Windows 的 perl 脚本中运行 perl -e

Windows 10 作为主机 VMware Workstation 12 Player 无桥接适配器 (vmnet0)

powershell - 如果我在服务器或工作站上,如何从Powershell中查找?

iis - 如何通过 IIS 7.5 删除 HTTP ETag header ?

c# - 显示 TreeNode 的图像

windows - 安装 cygwin : setup. ini 从 http ://mirrors. kernel.org 丢失