The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "https://192.168.2.54/pki.jsp
Method = "get",
ContentType = "text/html",
ProxyIp = "ieproxy",
//CerPath = "e:\\33.cer"
};
item.ClentCertificates = new X509CertificateCollection();
item.ClentCertificates.Add(new X509Certificate("e:\\33.cer", "123456"));
为什么 不设置 //CerPath = "e:\\33.cer" 就会报错 呢,下面 item.ClentCertificates.Add(new X509Certificate("e:\\33.cer", "123456")); 这句里面不是加了 证书的吗???