[Mono-list] HttpListener SSL client certificate

Edward Ned Harvey (mono) edward.harvey.mono at clevertrove.com
Thu Aug 7 16:55:16 UTC 2014


> From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> bounces at lists.ximian.com] On Behalf Of DrGusman
> 
> Just in case someone is in my same situation, if you are compiling mono from
> source as me go to /mcs/class/System/System.Net/HttpConnection.cs and
> change:
> 
>     SslServerStream ssl_stream = new SslServerStream (new NetworkStream
> (sock, false), cert, false, true, false);
> 
> for
> 
>     SslServerStream ssl_stream = new SslServerStream (new NetworkStream
> (sock, false), cert, false, false);

I see the source code for that class - 
https://github.com/mono/mono/blob/a6dccdaf6dd5f985cc5d53b7764a47bc00b8ec43/mcs/class/System/System.Net/HttpConnection.cs

Is in System / System.Net ...  But I tried to compare it against .NET, and I don't see that class anywhere in .NET.  Do you have a link to that class description in MSDN?  And if it's not a .NET class, if it's something mono specific, maybe you should be doing something different such that you don't care anymore?

Whenever I find something such as this, which is a clear difference between .NET and Mono, sometimes it's a legitimate bug or missing feature, but most of the time it's just a matter of "You're doing something different from what they expected you to do."  Most of the time, you can make some minor change to your code, or how you're doing something, and get back to a state where everything simply works on both platforms.  

So the question is - What is it that you're *actually* trying to do, at a higher level?  (Assuming you didn't actually write code that directly uses HttpConnection)


More information about the Mono-list mailing list