【问题标题】:netsh - The following command was not found error on Windows XPnetsh - 在 Windows XP 上找不到以下命令错误
【发布时间】:2011-12-21 04:56:10
【问题描述】:

当我运行以下 netsh 命令时:

netsh http add sslcert ipport=0.0.0.0:44300 appid ={00112233-4455-6677-8899-AABBCCDDEEFF} certhash=dafebdb65ec7544218bf9a1794c6424 0207f63b9。

使用 powershell 或 Visual Studio 命令提示符出现以下错误:

未找到以下命令:http add sslcert ipport=0.0.0.0:44300 appid ={00112233-4455-6677-8899-AABBCCDDEEFF} certash=dafebdb65ec7544218bf9a1794c6424 0207f63b9.

我目前正在配置 WCF 服务以使用 SSL,并且一直在学习 john sharp 所著的“windows communcation foundation 4 - step-by-step”一书。

我有 Visual Studio 2010 SP1 并使用 IIS Express。我能想到的唯一区别是我运行的是 Windows XP Professional 而不是 Windows 7

【问题讨论】:

    标签: wcf ssl netsh


    【解决方案1】:

    在 Windows XP 上netsh 将无法正常工作。最好使用httpcfg。您需要从 Microsoft 下载中心下载“WindowsXP-KB838079-SupportTools-ENU.exe”或从here 尝试。变化:

    netsh http add sslcert ipport=0.0.0.0:44300 appid ={00112233-4455-6677-8899-AABBCCDDEEFF} certhash=dafebdb65ec7544218bf9a1794c6424 0207f63b9
    

    httpcfg set ssl -i 0.0.0.0:44300 -h dafebdb65ec7544218bf9a1794c64240207f63b9
    

    这将创建 SSL。 检查类型

    httpcfg query ssl 
    

    CMD.

    希望对你有帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-06
      • 1970-01-01
      • 1970-01-01
      • 2012-12-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多