<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I am using httpc to connect to a website that is using invalid certificate. But it is crashing while ssl handshake.<br><br>======<br>7> httpc:request(post, {"<a href="https://somewhere.com">https://somewhere.com</a>", [],  "application/x-www-form-urlencoded", ""}, [{ssl, [{verify, verify_none}]}], []).                               {error,{failed_connect,[{to_address,{"<a href="http://somewhere.com">somewhere.com</a>",<br>

                                     443}},<br>                        {inet,[inet],<br>                              {eoptions,{{function_clause,[{tls_connection,handle_alert,<br>                                                                           [{alert,1,112,{"tls_connection.erl",375}},<br>

                                                                            hello,<br>                                                                            {state,client,<br>                                                                                   {#Ref<0.0.0.137>,<0.74.0>},<br>

                                                                                   gen_tcp,tls_connection,tcp,tcp_closed,tcp_error,...}],<br>                                                                           [{file,"tls_connection.erl"},{line,834}]},<br>

                                                           {tls_connection,handle_alerts,2,<br>                                                                           [{file,"tls_connection.erl"},{line,832}]},<br>

                                                           {gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,505}]},<br>                                                           {proc_lib,init_p_do_apply,3,<br>

                                                                     [{file,"proc_lib.erl"},{line,239}]}]},<br>                                         {gen_fsm,sync_send_all_state_event,<br>                                                  [<0.75.0>,{start,infinity},infinity]}}}}]}}<br>

=======<br><br></div>I am able to browse website in Firefox.<br><br></div><div>My elang version is <br>====<br>[root@chatgateway1 ~]# erl<br>Erlang R16B03-1 (erts-5.10.4) [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]<br>

<br>Eshell V5.10.4  (abort with ^G)<br>====<br></div><br>I googled it and it looks some thing related to <a href="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/4302">http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/4302</a>.<br>

<br></div>Any help to fix or work around this is much appreciated.<br><br>Thanks & Regards,<br>Atul Atri.<br><br></div>