Re: CA validation
Paul Lesniewski <[email protected]> Mon, 20 Jan 2014 17:56:11 -0800
| Newsgroups | gmane.mail.squirrelmail.devel |
|---|---|
| Message-ID | <CAHog1141vzhJFy3JVyshYkbz82sG8__ZX2e+9ZED8VXPkEZKhg@mail.gmail.com> |
On Mon, Jan 20, 2014 at 1:16 AM, Emmanuel Dreyfus <[email protected]> wrote: > On Sun, Jan 19, 2014 at 08:17:25PM -0800, Paul Lesniewski wrote: >> > Squirrelmail has TLS support, but it lacks the ability to enforce server >> > certificate validation. This leaves no defense against MiM attacks using >> > a self-signed certificate. > (...) >> Indeed. If you care to send a diff, I'd be happy to commit it. > > Here is it: > http://ftp.espci.fr/shadow/manu/sq-stream.patch > > I tested it with this configuration: > $smtpServerAddress='smtp.example.net'; > $smtpPort = 465; > $use_smtp_tls = true; > $smtpOptions['ssl']['verify_peer'] = true; > $smtpOptions['ssl']['verify_depth'] = 3; > $smtpOptions['ssl']['cafile'] = '/etc/openssl/certs/ca.crt'; > > Using the wrong CA in $smtpOptions['ssl']['cafile'] cause the connexion > to abort, which suggests the thing works. Sendmail logs the TLS cipher > used as being ECDHE-RSA-AES256-GCM-SHA384, which is the best OpenSSL > can do. http://sourceforge.net/p/squirrelmail/code/14427 http://sourceforge.net/p/squirrelmail/code/14429 I also added same support on the IMAP side. Thanks again, -- Paul Lesniewski SquirrelMail Team Please support Open Source Software by donating to SquirrelMail! http://squirrelmail.org/donate_paul_lesniewski.php ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk ----- squirrelmail-devel mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: [email protected] List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel