📜  无法建立 ssl 连接,请参阅内部异常. - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:19.409000             🧑  作者: Mango

代码示例1
Yes, you can Bypass the certificate using below code...

HttpClientHandler clientHandler = new HttpClientHandler();
clientHandler.ServerCertificateCustomValidationCallback = (sender, cert, chain, sslPolicyErrors) => { return true; };

// Pass the handler to httpclient(from you are calling api)
HttpClient client = new HttpClient(clientHandler)