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;