Aug 31, 2012

WCF: How to ignore not valid certificate

WCF: How to ignore not valid certificate. Before calling webservice please add this line of code:
ServicePointManager.ServerCertificateValidationCallback +=
          ((sender, certificate, chain, sslPolicyErrors) =>true);