[Mono-bugs] [Bug 377463] SmtpClient does not support SSL (throw NIE)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 17 19:56:10 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=377463

User spouliot at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=377463#c2


Sebastien Pouliot <spouliot at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
            Summary|SmtpClient + EnableSsl causes                   |SmtpClient does not support SSL (throw NIE)
                   |RemoteCertificateChainErrors exception          |




--- Comment #2 from Sebastien Pouliot <spouliot at novell.com>  2008-04-17 17:56:09 MST ---
This is what I get using HEAD

Unhandled Exception: System.NotImplementedException: The requested feature is
not implemented.
  at System.Net.Mail.SmtpClient.InitiateSecureConnection () [0x0005d] in
/home/poupou/svn/mcs/class/System/System.Net.Mail/SmtpClient.cs:996
  at System.Net.Mail.SmtpClient.SendCore (System.Net.Mail.MailMessage message)
[0x000f4] in
/home/poupou/svn/mcs/class/System/System.Net.Mail/SmtpClient.cs:506
  at System.Net.Mail.SmtpClient.Send (System.Net.Mail.MailMessage message)
[0x00052] in
/home/poupou/svn/mcs/class/System/System.Net.Mail/SmtpClient.cs:446
  at TestSpace.test.Main (System.String[] args) [0x00000]

and the code looks like this(*)

..
                        SslStream sslStream = new SslStream (stream, false,
callback, null);
                        CheckCancellation ();
                        sslStream.AuthenticateAsClient (Host,
this.ClientCertificates, SslProtocols.Default, false);
                        stream = sslStream;

                        throw new NotImplementedException ();
..

My guess is that you have a configuration problem wrt your certificates (so
you're getting the exception earlier than me) but sadly, even if you fix this
configuration problem, you won't get much farther :(

I'm changing the title of the bug report to reflect this

(*) there are quite a few MonoTODO about this in the same file.


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


More information about the mono-bugs mailing list