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

前端 未结 9 2193
囚心锁ツ
囚心锁ツ 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:11

    I fought with this forever to get my IIS Express to do SSL properly. It turns out my certificate was in the Trusted Root Certification Authorities store instead of the Personal Certificates store. This is what worked for me:

    1. Make sure your certificate is in "Certificates(Local Computer)/Personal/Certificates"
    2. netsh http add sslcert ipport=0.0.0.0:8732 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid='{00112233-4455-6677-8899-AABBCCDDEEFF}'
    3. SSL Certificate successfully added
    4. Use MMC and drag certificate wherever you want it to go.

提交回复
热议问题