kmehta
kmehta

Reputation: 2497

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

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

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

Upvotes: 2

Views: 4500

Answers (1)

Marino van der Heijden
Marino van der Heijden

Reputation: 538

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.

Upvotes: 1

Related Questions