[erlang-questions] Fwd: SSL crashes while decoding alert.

Ingela Andin ingela.andin@REDACTED
Mon Apr 7 11:53:17 CEST 2014


Hi!

This is fixed in the latest version 17.0 (comming soon) or check master
branch at github.

Regards Ingela Erlang/OTP team - Ericsson AB


2014-04-04 10:33 GMT+02:00 atul atri <atulatri2004@REDACTED>:

> 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.
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140407/a7a88273/attachment.htm>


More information about the erlang-questions mailing list