1、 调用 数字证书 ,明明 带了 密码,为什么还会弹出密码框
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")); // 此处明明加了密码,为什么还会弹出密码框???
2、 如果 CerPath = "e:\\33.cer" 不使用,则会弹出 错误 信息
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")); 这句里面不是加了 证书的吗??? |