来自:https://www.cnblogs.com/waw/p/8286608.html
代码部分:
static TestApplication(){ ServicePointManager.ServerCertificateValidationCallback += RemoteCertificateValidate; }
private static bool RemoteCertificateValidate(object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors error) { //为了通过证书验证,总是返回true return true; }
原文地址:https://www.cnblogs.com/z5337/p/11245441.html
时间: 2024-11-06 16:30:58