首页 > 解决方案 > netsh 主机名端口无效参数

问题描述

我正在尝试将 SSL 证书注册到 Windows 7 和 Windows Server 2008R2 上的主机名端口,看起来该参数不受支持?

我的命令:

netsh http add sslcert hostnameport=mywebsite.com:443 certhash=de197ad9ec9c4d855b549c74d7033e1e4b31b1af appid={2d967d25-4edf-4962-9b6c-5b3c4d4de48d}

我收到错误消息,说hostnameport is not a valid argument for this command.这是操作系统的限制吗?它适用于到目前为止我已经能够测试的 Windows 10 及更高版本。

标签: iisiis-7iis-7.5netsh

解决方案


hostnameport was added as part of IIS SNI, and solely available in Windows 8 and above, so the error message is expected,

https://docs.microsoft.com/en-us/iis/get-started/whats-new-in-iis-8/iis-80-server-name-indication-sni-ssl-scalability

Windows 7 and Windows Server 2008 R2 are both end-of-life, so don't waste your time on them.


推荐阅读