4

I need to tell my C# soap web service consumer to not validate the certificate and just accept it. Is this possible?

Why: we publish a https-only web service. A client needs to consume it but has some kind of firewall/proxy (WebSense?) which does something to the certificate to make it fail validation. At this point I don't even know the details of what it does, but the customer appears to be ok with forfeiting the benefits of SSL, so I'm looking for a workaround.

MK.
  • 33,605
  • 18
  • 74
  • 111

1 Answers1

6

http://blog.jameshiggs.com/2008/05/01/c-how-to-accept-an-invalid-ssl-certificate-programmatically uses ServicePointManager.ServerCertificateValidationCallback to disable the certificate validation.

See "The remote certificate is invalid according to the validation procedure." using Gmail SMTP server for a similiar question with the same answer.

Community
  • 1
  • 1
rhanekom
  • 170
  • 1
  • 13