.NET https requests with different security protocols across threads

前端 未结 2 1802
余生分开走
余生分开走 2020-12-08 16:06

I maintain a quite complex ASP.NET application (a customized NopCommerce 3.10). It needs to connect to third-party servers through HTTPS on different scenarios. I am doing t

2条回答
  •  醉酒成梦
    2020-12-08 16:37

    You could simply use the callback you mentioned (ServicePointManager.ServerCertificateValidationCallback) to implement a custom validation logic: you bypass the errors only if they come from that malicious server.

提交回复
热议问题