Friday, August 27, 2010

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

I've working on interfacing with a 3rd party web service recently. The development version of the service had an SSL certificate that was issued to different host than the one deployed on. This, as expected, was throwing out "Could not establish trust relationship for the SSL/TLS secure channel with authority" exceptions at run time.

I did some research on how to overcome certificate issues and this link covers most of the techniques available.

More instructions on creating a temporary certificate for development:
Create and Install Temporary Certificates

Please understand there's a reason why the webservice call fails. These techniques should only be used for testing in a dev environment against a trusted service.

No comments: