SmtpClient not accepting self-signed certificate



Hi!

I've got a little Problem with the System.Net.Mail.SmtpClient class in the .NET Framework 2.0

Sending eMails without authentication works fine, however, if use my personal SMTP server which requires STARTTLS (special directive for SMTP-time upgrade to an SSL connection), the sending process causes an exception, saying

"The remote certificate is invalid according to the validation
procedure"

The SMTP server in question uses a self-signed SSL certification, which I think is the problem here. Can I somehow make the SmtpClient class accept self-signed certificates.

-Markus-
.



Relevant Pages

  • smtp via ssl
    ... I think it may be a certificate problem, ... so I can't access my work SMTP server. ... it seems that I'll have to switch ... use an alternate port, and specified the port to use. ...
    (microsoft.public.mac.office.entourage)
  • RE: Error after renewing SSL certificate
    ... Anyhow, to answer your question, I imported the certificate via IIS ... I am running exchange 2003. ... After I renewed our SSL certificate and imported into our Exchange ... The error i am getting on our SMTP server is ...
    (microsoft.public.exchange.admin)
  • Re: Message: smtp;552 sorry, your envelope sender domain must exist (#5.7.1)
    ... getting no results or isn't getting a response which matches your domain. ... I've got problem with sending emails to particular domain. ... > reach recipient and I get following message: ... SMTP server on the other side is some ...
    (microsoft.public.exchange.connectivity)
  • Re: SMTP Relaying
    ... which the client uses to verify the SMTP server ... if the clients don't have a valid certificate, ... MCSE 2000, 2003, CISSP, Security+, Network+, Server+ ...
    (microsoft.public.inetserver.iis.smtp_nntp)
  • RE: Error after renewing SSL certificate
    ... Now I am getting a new error on the other smtp server: ... it looks like it was still doing something with the old certificate that ... I also ran the SSLDiag tool from Microsoft on the exchange box and I ... After I renewed our SSL certificate and imported into our Exchange ...
    (microsoft.public.exchange.admin)