Bug 5480 - SslStream.AuthenticateAsServer incompatibility with .NET
Summary: SslStream.AuthenticateAsServer incompatibility with .NET
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Security ()
Version: 2.10.x
Hardware: All All
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-06-02 18:04 UTC by Nikita Tsukanov
Modified: 2013-06-05 04:56 UTC (History)
2 users (show)

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

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 on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Nikita Tsukanov 2012-06-02 18:04:35 UTC
Hello. I encounted the issue that was described on Novell's bugtracker 2 years ago: http://www.mail-archive.com/mono-bugs@lists.ximian.com/msg74245.html

I can confirm that AuthentificateAsServer hangs, but not only with .NET clients, but with C++ ones such as SkypeKit.

I can also confirm that changing "return BeginRead" to "return BeginWrite" in BeginAuthenticateAsServer routine fixes the problem.

Now I have to include a patched version of SslStream.cs in my projects.

Please, include that fix in upstream.
Comment 1 Jack Murray 2013-05-27 12:36:31 UTC
I'm also encountering this issue. There is a fix available in the above mail, it'd be great if this could be merged.

Thanks.
Comment 2 Nikita Tsukanov 2013-05-27 16:31:16 UTC
As I can see, they've fixed this a year ago:
https://github.com/mono/mono/commit/7ce10db9e8497930331d9e5cfc3ed8c68b327868
Please try to compile Mono from recent sources and see if the issue is still present.
Comment 3 Jack Murray 2013-06-04 17:58:29 UTC
I've finally managed to compile Mono from Git and it is indeed fixed. This bug should be able to be closed now.

Thanks.