<span style="font-family: Arial;">Please report it to erlang-bugs, you'll get better help with ssl bugs there.<br><br>-- <br>Loïc Hoguin<br>http://ninenines.eu</span><span style="font-family: Arial;"><br><br>-------- Original Message --------<br>From:Samir Sow <samset@wanadoo.fr><br>Sent:Fri, 11 Apr 2014 23:23:10 +0200<br>To:extend@lists.ninenines.eu<br>Subject:[99s-extend] ssl<br><br></span>Hi,<br><br>Still struggling with ssl.<br>I decided to check what’s going on at the ssl module level. Did a step by step ssl connection using the erlang ssl doc.<br>Found an error erlang:size badarg, but could not understand if it’s a problem with the key/cert files or with the data sent by the client.<br><br>Any help welcomed. Thx<br><br>Samir<br><br>{ok, SSLSocket} = ssl:ssl_accept(Socket, [{cacertfile, "priv/cert/cacert.crt"}, {certfile, "priv/cert/server.crt"}, {keyfile, "priv/cert/server.key"}]).<br>** exception exit: {{badarg,<br>                        [{erlang,size,<br>                             [[22,3,1,0,176,1,0,0,172,3,3,83,72,89,48,183,175,<br>                               58,145,197,219|...]],<br>                             []},<br>                         {tls_record,get_tls_records_aux,2,<br>                             [{file,"tls_record.erl"},{line,122}]},<br>                         {tls_connection,next_tls_record,2,<br>                             [{file,"tls_connection.erl"},{line,484}]},<br>                         {tls_connection,handle_info,3,<br>                             [{file,"tls_connection.erl"},{line,307}]},<br>                         {gen_fsm,handle_msg,7,<br>                             [{file,"gen_fsm.erl"},{line,503}]},<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.105.0>,{start,infinity},infinity]}}<br>     in function  gen_fsm:sync_send_all_state_event/3 (gen_fsm.erl, line 242)<br>     in call from ssl_connection:sync_send_all_state_event/2 (ssl_connection.erl, line 1649)<br>     in call from ssl_connection:handshake/2 (ssl_connection.erl, line 97)<br>     in call from tls_connection:start_fsm/8 (tls_connection.erl, line 81)<br>     in call from ssl_connection:ssl_accept/7 (ssl_connection.erl, line 84)<br>_______________________________________________<br>Extend mailing list<br>Extend@lists.ninenines.eu<br>https://lists.ninenines.eu/listinfo/extend<br>