[Mono-bugs] [Bug 430504] [2.0 on Win] SslStream.BeginAuthenticateAsServer() does not work

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Sep 30 18:11:45 EDT 2008


User amacbeth at gmail.com added comment

Adam MacBeth <amacbeth at gmail.com> changed:

           What    |Removed                                         |Added
                 CC|                                                |amacbeth at gmail.com

--- Comment #3 from Adam MacBeth <amacbeth at gmail.com>  2008-09-30 16:11:45 MDT ---
I've been tracking down this bug as well. I have attached a test case that
reproduces the problem. To run, just compile the sample code with gmcs and make
sure the dummy.pfx file is in the executable directory when running it.

What I've found is that until the client sends data on the SslStream, the
authentication will not complete. This is very different from .NET and quite

The code in the #if 1/#endif does this, which causes authentication to
complete, though the program crashes on exit with this code enabled. This
doesn't work on .NET and fails with an InvalidOperationException.

I've tried running this code with MONO_THREADS_PER_CPU=2000 in the hope that
this is a ThreadPool issue, but this does not help.

Tested with Mono 1.9.1/2.0 on Linux/Windows

Actual Results:

Hangs after 1 authentication completes.

Expected Results (observed on .NET):

Authentication successful for all connections.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list