Quantcast
Channel: Dan's Development Blog - tutorial
Viewing all articles
Browse latest Browse all 14

How to Ignore SSL in C#

$
0
0

If you see this error

 

System.Net.WebException : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
  ----> System.Security.Authentication.AuthenticationException : The remote certificate is invalid according to the validation procedure.

 

Disable checking for a valid SSL Signature

ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, errors) => true;

 


Viewing all articles
Browse latest Browse all 14

Trending Articles