GnuTLS/NSS interop in Exim 4.80 RC
help-gnutls-phil at spodhuis.org
Sun May 20 12:16:48 CEST 2012
Short: NSS client to GnuTLS 2.12 (but not 2.8) fails TLS negotiation,
GnuTLS dropping connection after reporting receiving a phantom packet.
For the Exim 4.80 release, currently in Release Candidate, I re-did the
GnuTLS integration to stop using APIs which gave deprecation warnings.
As part of this, I removed the hard-coded lists of algorithms from Exim,
instead delegating that task to GnuTLS, and passing the Exim
tls_require_ciphers string to gnutls_priority_init().
Things had been going well in the Release Candidates, but we now have a
release blocker. It seems that Thunderbird (NSS security library) can
not set up a TLS session with GnuTLS 2.12.18. (I saw the .19
announcement, to me it doesn't look as though there's anything
Bug in 2.12.14 and 2.12.18, seen by two people (myself one of them); but
not in 2.8.5. No problems observed with OpenSSL or GnuTLS clients, just
Mail thread starts at:
Protocol dump in my mail:
It looks as though GnuTLS is claiming to have received a packet of
length 9, which ssltap does not see. Could this be unconsumed data from
a previous packet?
Per ssltap, "openssl s_client" sent extensions:
while Thunderbird sent extensions:
It's not server_name, we handle that just fine (and can now do SNI
dispatch for key/cert selection). I see elliptic_curves and
ec_point_formats sent by both, so my "wild uneducated guess" was
[source availability notes below]
Thanks for any help you can provide,
On the off-chance that any GnuTLS devs run Exim themselves, I'll point
to our source; I don't expect you to debug our code, but I don't think
I'm being too arrogant in thinking someone may already be running Exim,
so I can point you at it to let you build yourselves to see the debug
You can add EXIM_GNUTLS_LIBRARY_LOG_LEVEL= to Local/Makefile with a
value accepted by gnutls_global_set_log_level() to have a callback
registered with gnutls_global_set_log_function(); "exim -d+tls" asks for
the TLS-specific debug messages, and the GnuTLS library messages will be
included. My test builds just set "EXIM_GNUTLS_LIBRARY_LOG_LEVEL=9".
4.80 RC2 announcement:
The root of the distribution tarball is one-level deep inside git,
in "src", so we do have src/src :( but if you "cd src" then you can
create "Local/" inside there and proceed as per a normal release.
More information about the Gnutls-help