WCF : Could not establish trust relationship for the SSL/TLS secure channel with authority error

前端 未结 2 391
说谎
说谎 2021-01-13 12:42

I have a client site that when a button is clicked it calls a wcf web service. The client site is http, while the url for the web service is https and requires a certificate

相关标签:
2条回答
  • 2021-01-13 13:23

    Found the problem.

    The root certificate which the host of the web service uses was not trusted by my server. (not sure why it was on my local machine and not my server). I found this out by opening the host's url in a web browser from the server to view their wsdl and got the security warning.

    Remedy: went to the issuer's site downloaded their root cert and added to my trusted root certifcation authorities.

    Bam, it works now.

    0 讨论(0)
  • 2021-01-13 13:26

    If it is a private cert it must be added to both the client and the server as no client can validate its root key.

    0 讨论(0)
提交回复
热议问题