开发者

SoapHttpClientProtocol disable ssl certificate validation

开发者 https://www.devze.com 2022-12-28 06:30 出处:网络
I need to tell my C# soap web service consumer to not validate the certificate and just accept it.Is this possible?

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.开发者_Go百科


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号