Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SoapHttpClientProtocol disable ssl certificate validation

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.

like image 970
MK. Avatar asked Oct 20 '25 06:10

MK.


1 Answers

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.

like image 146
rhanekom Avatar answered Oct 23 '25 07:10

rhanekom