[Mono-list] OpenSSL s_client talking to SslStream or SslServerStream
sebastien.pouliot at gmail.com
Wed Aug 8 23:09:27 UTC 2012
A quick guess would be that the client does not use SSL3 or TLS1 -
which are the only versions Mono supports. A network trace (e.g.
wireshark) would show if this was the case or not.
On Wed, Aug 8, 2012 at 5:46 PM, Peter Hultqvist <phq at silentorbit.com> wrote:
> I'm writing an IMAP server that will accept SSL connections.
> It is tested using openssl:
> openssl s_client -connect localhost:1993
> On connection an IOException is thrown with an inner
> NotSupportedException: "Unsupported security protocol type"
> I have tried using two methods:
> With the System.Net.Security.SslStream:
> ssl = new SslStream(tcp.GetStream(), false);
> AuthenticateSslCallback, null);
> And with the Mono.Security.Protocol.Tls.SslServerStream:
> ssl = new SslServerStream(
> true, SecurityProtocolType.Tls);
> Both are generating the same exception mentioned above.
> On http://www.mono-project.com/Cryptography it mentions Tls being
> implemented but it only says 100% managed not whether it has complete
> This was all tested on Ubuntu, mono 22.214.171.124.
> Finally I tried the first example on windows and it worked.
> I'm not sure where to go from here, whether to look for other libraries
> or file a bug?
> Should I expect my code to work on mono?
> Mono-list maillist - Mono-list at lists.ximian.com
More information about the Mono-list