【C#】解决HttpClient中https请求SSL证书问题

配置绕过SSL证书

var handler = new HttpClientHandler();
handler.ServerCertificateCustomValidationCallback += (sender, certificate, chain, errors) => true;
var client = new HttpClient(Handler);

你可能感兴趣的:(https,ssl,网络协议)