20 September, 2014

Could not establish secure channel for SSL/TLS with authority

There is a WCF service in a test machine and it uses https. It has a self signed certificate for the machine dns.

Every time I called the web service it returned an error
Could not establish trust relationship for SSL/TLS secure channel

The binding and endpoint configuration in the client and the server were OK and i could even make the service call successfully through soapUI (a free tool to test web services).

In the end, since the certificate was self signed, and not on my machine, I had to install the certificate in my machine for the call to work.

Install certificate using Windows:
  1. - open Internet explorer
  2. - open the service site
  3. - click on the red "Certificate error" box right next to the address bar
  4. - choose view certificates
  5. - install certificate
  6. - next, select "Place all certificates in the following store"
  7. - Select Trusted Root Certification Authorities
  8. - accept everything and you're done.

No comments:

Post a Comment