Problem establishing StartTLS connection with Exchange server
A Geary user just reported a problem connecting to an Exchange server using SMTP STARTTLS: geary#33 (closed), the last log message there, "Peer failed to perform TLS handshake", is from gtlsconnection-gnutls.c.
After negotiating STARTTLS with the server, Geary is constructing a new GTlsConnection and explicitly calling g_tls_connection_handshake_async
, to get the explicit error handling, and this is where we are getting the "peer failed.." error. Wireshark is reporting that after negotiation, Geary is sending a TLS 1.2 Client Hello fine and there's a couple of encrypted exchanges, but that's it. Geary isn't seeing accept-certificate fired or anything. However I can connect to the server using both gnutls-cli --starttls-proto=smtp exchange.tu-berlin.de:587
and openssl's s_client command.
So there's maybe a problem with the GLib impl?