Bug 34483 - Cannot Connect to Bank Website, TLS Failure Handshake
Summary: Cannot Connect to Bank Website, TLS Failure Handshake
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System (show other bugs)
Version: 4.0.0
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Martin Baulig
URL:
Depends on:
Blocks:
 
Reported: 2015-10-01 10:31 UTC by David Lilley
Modified: 2017-04-04 13:09 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
SelfContained Test View MainWindow.CS (22.11 KB, application/zip)
2015-10-01 10:31 UTC, David Lilley
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 34483 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description David Lilley 2015-10-01 10:31:36 UTC
Created attachment 13158 [details]
SelfContained Test View MainWindow.CS

WebClient aClient = new WebClient();
string sValue = aClient.DownloadString("https://kreditkarten-banking.lbb.de/lbb/");

But opening it up in aBrowser works fine.

This was experienced on Android, IOS and Mac OS X


System.Net.WebException: Error: SendFailure (Error writing headers) ---> System.Exception: Error writing headers ---> System.Exception: The authentication or decryption has failed. ---> System.Exception: The authentication or decryption has failed.
  at Mono.Security.Protocol.Tls.RecordProtocol.ProcessAlert (AlertLevel alertLevel, AlertDescription alertDesc) [0x00013] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs:574
  at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x000d0] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs:376
  --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (IAsyncResult result) [0x00035] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:425
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x0000c] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslStreamBase.cs:99
  --- End of inner exception stack trace ---
  --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x0005e] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/mcs/class/System/System.Net/HttpWebRequest.cs:944
  at System.Net.HttpWebRequest.GetResponse () [0x0000e] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/mcs/class/System/System.Net/HttpWebRequest.cs:958
  at System.Net.WebClient.GetWebResponse (System.Net.WebRequest request) [0x00000] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/external/referencesource/System/net/System/Net/webclient.cs:310
  at System.Net.WebClient.DownloadBits (System.Net.WebRequest request, System.IO.Stream writeStream, System.Net.CompletionDelegate completionDelegate, System.ComponentModel.AsyncOperation asyncOp) [0x00035] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/external/referencesource/System/net/System/Net/webclient.cs:1294
  at System.Net.WebClient.DownloadDataInternal (System.Uri address, System.Net.WebRequest& request) [0x00025] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/external/referencesource/System/net/System/Net/webclient.cs:357
Comment 1 René 2015-10-01 14:41:05 UTC
Additional info:

This is a Mono-only problem. Running a simple console app with Mono (Mac) fails. The same test on Windows using .NET works:

static void Main(string[] args)
{
	WebClient aClient = new WebClient();
	string sValue = aClient.DownloadString("https://kreditkarten-banking.lbb.de/lbb/");
}
Comment 2 René 2015-10-01 14:41:58 UTC
This post on SO looks like it is related: http://stackoverflow.com/questions/25081384/mono-httpwebrequest-over-ssl-error-writing-headers
Comment 3 David Lilley 2015-10-02 03:56:45 UTC
Thanks

Just tried what was suggested in the stack overflow against the self contained test without success
Comment 4 Lannes-Lacrouts Guillaume 2016-07-08 12:30:24 UTC
Hello , for information, we have opened a similar bugzilla: https://bugzilla.xamarin.com/show_bug.cgi?id=42399