WCF newbie - how to install and use a SSL certificate?

前端 未结 4 1800
说谎
说谎 2021-01-07 12:46

This should be a snap for anyone who\'s done it before...

I\'m trying to set up a self-hosted WCF service using NetTcpBinding. I got a trial SSL certificate from Th

4条回答
  •  独厮守ぢ
    2021-01-07 13:25

    The problem seems to be that the server certificate you have installed on your server is not trusted by the client.

    For it to be trusted the root CA certificate of the server certificate needs to be in the "Trusted Root Certification Authorities" store of the user running the client. If you get a "production" level server certificate from Thawte or some other similar CA it will already be trusted by most machines in the world.

    However, judging by the error message (where the subject distinguished name of the certificate contains "OU=For Test Purposes Only. No assurances.") your certificate is a test certificate and you therefore need to add the CA certificate to your "Trusted Root Certification Authorities" store manually. The root certificate can usually be downloaded from the CA's (Thawte in your case) website.

提交回复
热议问题