简体   繁体   中英

The request was aborted: Could not create SSL/TLS secure channel

I have .NET 2.0 Windows Forms app that makes an HttpWebRequest to download a file from a secure HTTPS server. This has run flawlessly in test on 3-4 completely separate networks.

My client needs to run this on a very restricted, secure network. Only authorized personnel are allowed to be on that network. Our liason tester who is allowed to install and test the app reports that the it is failing with this error:

The request was aborted: Could not create SSL/TLS secure channel.

Using wireshark, he is able to see that two of the three SSL handshakes occur. Any idea why the third would not occur?

He is able to successfully hit the download link from IE and download the file, which makes me believe that permissions are set up correctly.

In my app, I have set a couple of ServicePoint properties: Expect100Continue = true and require SSL3. Also I have set the validation callback to always return true (accept all certificates). Any idea why the app can't establish and SSL connection, but IE can?

Any help debugging this would be super. Thanks.

UPDATE 3/7/2012

添加了System.Net跟踪,这是我发现很有趣的部分。算法不匹配。

Added System.Net tracing and here is a piece that I found interesting. Algorithm mismatch.

I had this problem too. Cost me a lot of time... In my case I found out the server wants to check the third party's certificate with the Certificate Authority (CA). Only the CA's ip-address got blocked by the firewall. This all happens during the handshake and got me the same error message.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM