var handler = new HttpClientHandler();
handler.ClientCertificateOptions = ClientCertificateOption.Manual;
handler.ServerCertificateCustomValidationCallback =
(httpRequestMessage, cert, cetChain, policyErrors) =>
{
return true;
};
var client = new HttpClient(handler);
HttpClient 访问https地址抛异常:The SSL connection could not be established, see inner exception
最新推荐文章于 2025-03-15 10:48:00 发布