Tag: httpwebrequest x509certificate2

请求已中止:无法创建SSL / TLS安全通道

可能重复: 请求已中止:无法创建SSL / TLS安全通道 我正在尝试发送带有客户端证书的http请求。 该文件,在本例中为.p12文件。 但是当它到达行responseStream = httpRequest.GetRequestStream(); 它抛出一个WebException: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel. 我在IIS7.5(在Windows 7上)上调试它,其中应用程序池标识是“LocalSystem”。 我该如何解决这个问题? System.IO.Stream responseStream = null; string errorString = string.Empty; ; string postData = string.Empty; HttpWebRequest httpRequest = null; System.Text.Encoding Encoding = new System.Text.UTF8Encoding(); try { XmlDocument orderXml = new XmlDocument(); orderXml.Load(@”c:\xmlfile.xml”); postData […]