iis - 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 及更高版本。
解决方案
hostnameport was added as part of IIS SNI, and solely available in Windows 8 and above, so the error message is expected,
Windows 7 and Windows Server 2008 R2 are both end-of-life, so don't waste your time on them.
推荐阅读
- javascript - locahost 上的 PeerJs 问题
- r - 如何使用不同颜色的颜色、形状和图例标签
- java - 胖 JAR 不工作。“没有主要清单属性”。尝试了POM文件,仍然失败
- java - Assert Fluent Assertions 比 Sequential Assertions 有什么好处?
- sql - 错误消息(列计数与第 1 行的值计数不匹配)
- react-native - 如何优雅地将登录用户迁移到我的 React Native 应用程序的新版本?
- python - 我正在尝试制作一个登录系统,一切正常,但文本文件中没有显示
- pine-script - 仅在 N 个柱后退出交易(仅有时有效?)
- reactjs - 如何在 Jest 单元测试中获取 React 道具的值?
- docker-compose - Docker compose 在 Windows 10 中失败