Could not create SSL/TLS secure channel, despite setting ServerCertificateValidationCallback
- 阅读更多 关于 Could not create SSL/TLS secure channel, despite setting ServerCertificateValidationCallback
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to establish SSL/TLS connection to test server with self-signed certificate . Communication through unsecure channel worked without issues. Here is my sample code, which I've written based on this solutions: Allowing Untrusted SSL Certificates with HttpClient C# Ignore certificate errors? .NET client connecting to ssl Web API ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true; var c = new HttpClient(); var r = c.GetAsync("https://10.3.0.1:8443/rest/v1").Result; if (r