Can't connect to smtp.gmail.com via SSL in R14

Andrew Thompson andrew@REDACTED
Fri Aug 13 20:01:22 CEST 2010


So, when I try to connect to the SSL SMTP socket for gmail, I get this
failure:

Erlang R14B (erts-5.8.1) [source] [64-bit] [smp:4:4] [rq:4]
[async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.8.1  (abort with ^G)
1> application:start(crypto).
ok
2> application:start(public_key).
ok
3> application:start(ssl).
ok
4> ssl:connect("smtp.gmail.com", 465, []).
{ok,{sslsocket,new_ssl,<0.51.0>}}
5> 
=ERROR REPORT==== 13-Aug-2010::13:27:09 ===
SSL: decipher_error: ./ssl_record.erl:648:Fatal error: bad record mac
flush().
Shell got {#Ref<0.0.0.59>,{error,"bad record mac"}}
ok


This happens with the R14A release, with the latest github/dev AND the
latest github/pu branches on OSX. 

It doesn't happen on R13b02 on another machine, there it works as
expected. It should be pretty easy to reproduce without further
information.

Andrew


More information about the erlang-bugs mailing list