用httpWebRequest调用https开头的php webservice,报“基础连接已经关闭: 未能为SSL/TLS 安全通道建立信任关系”错误的解决方法

在窗体的

            InitializeComponent();

之后, 加一句

System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

让证书的Validation总是返回true

原文地址:https://www.cnblogs.com/lthxk-yl/p/3316829.html