Thursday, June 30, 2016

How to ignore certificate errors while debugging...


While debugging we use to come across certificate errors when talking to other sites. One of the solution to ignore these certificate errors while debugging is to add the below code as first statement in Program.cs  

 

ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;



 


No comments:

Post a Comment