[erlang-questions] SSL crashes while decoding alert.
atul atri
atulatri2004@REDACTED
Fri Apr 4 10:33:02 CEST 2014
Hi,
I am using httpc to connect to a website that is using invalid certificate.
But it is crashing while ssl handshake.
======
7> httpc:request(post, {"https://somewhere.com", [],
"application/x-www-form-urlencoded", ""}, [{ssl, [{verify, verify_none}]}],
[]). {error,{failed_connect,[{to_address,{"
somewhere.com",
443}},
{inet,[inet],
{eoptions,{{function_clause,[{tls_connection,handle_alert,
[{alert,1,112,{"tls_connection.erl",375}},
hello,
{state,client,
{#Ref<0.0.0.137>,<0.74.0>},
gen_tcp,tls_connection,tcp,tcp_closed,tcp_error,...}],
[{file,"tls_connection.erl"},{line,834}]},
{tls_connection,handle_alerts,2,
[{file,"tls_connection.erl"},{line,832}]},
{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,505}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,239}]}]},
{gen_fsm,sync_send_all_state_event,
[<0.75.0>,{start,infinity},infinity]}}}}]}}
=======
I am able to browse website in Firefox.
My elang version is
====
[root@REDACTED ~]# erl
Erlang R16B03-1 (erts-5.10.4) [source] [64-bit] [smp:2:2]
[async-threads:10] [hipe] [kernel-poll:false]
Eshell V5.10.4 (abort with ^G)
====
I googled it and it looks some thing related to
http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/4302.
Any help to fix or work around this is much appreciated.
Thanks & Regards,
Atul Atri.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140404/0c1b5f66/attachment.htm>
More information about the erlang-questions
mailing list