Update to post: HOWTO: Get rid of " Could Not Establish Trust Relationship with Remote Server" error

Read original post here.
Older methods are now obselete. Use the following…

+= new System.Net.Security.RemoteCertificateValidationCallback(RemoteCertValidateCallback);

and callback method…

public static bool RemoteCertValidateCallback(object sender, X509Certificate cert, X509Chain chain, System.Net.Security.SslPolicyErrors error)


    return true;


or you can simply use (in c# only) anonnymous method,


    += delegate


            object sender,

            X509Certificate cert,

            X509Chain chain,

            System.Net.Security.SslPolicyErrors error


{ return (true); };


  1. Pingback: “Could not establish trust relationship for the SSL/TLS secure channel with authority…” « dotnet etc.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s