Using netsh, bind an SSL certificate to a port number is failing

前端 未结 9 2194
囚心锁ツ
囚心锁ツ 2020-12-08 19:57

I have followed the instructions in SSL with Self Hosted WCF Service. When I am trying to bind the certificate on Windows 7 using netsh as described in How to: Conf

9条回答
  •  无人及你
    2020-12-08 20:20

    We faced the same error and after long hours, we realized that netsh was not browsing all local machine stores to find the certificate identified by the "certhash" parameter. By default, it searches the certificate in the "personal" store and only there.

    As our certificate was not in the "personal" store but in the "Trusted Root Certification Authorities" store, the problem was solved by adding the "certstorename" parameter in the netsh command:

    C:\>netsh http add sslcert ipport=0.0.0.0:8732 certstorename=AuthRoot certhash=...  
    

提交回复
热议问题