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);

1 comment:

  1. The certificates should be well written and properly detailed. Any flaw, error in the content, design and layout in the care certificate answers should be ignored and avoided. The efforts should be put in the writing and designing of the certifications. There are experts and specialists who can help the individuals significantly in maintaining and creating the certificates.