[99s-extend] ssl

Loïc Hoguin essen at ninenines.eu
Fri Apr 11 23:31:36 CEST 2014


Please report it to erlang-bugs, you'll get better help with ssl bugs there.

-- 
Loïc Hoguin
http://ninenines.eu

-------- Original Message --------
From:Samir Sow <samset at wanadoo.fr>
Sent:Fri, 11 Apr 2014 23:23:10 +0200
To:extend at lists.ninenines.eu
Subject:[99s-extend] ssl

>Hi,
>
>Still struggling with ssl.
>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.
>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.
>
>Any help welcomed. Thx
>
>Samir
>
>{ok, SSLSocket} = ssl:ssl_accept(Socket, [{cacertfile, "priv/cert/cacert.crt"}, {certfile, "priv/cert/server.crt"}, {keyfile, "priv/cert/server.key"}]).
>** exception exit: {{badarg,
>                        [{erlang,size,
>                             [[22,3,1,0,176,1,0,0,172,3,3,83,72,89,48,183,175,
>                               58,145,197,219|...]],
>                             []},
>                         {tls_record,get_tls_records_aux,2,
>                             [{file,"tls_record.erl"},{line,122}]},
>                         {tls_connection,next_tls_record,2,
>                             [{file,"tls_connection.erl"},{line,484}]},
>                         {tls_connection,handle_info,3,
>                             [{file,"tls_connection.erl"},{line,307}]},
>                         {gen_fsm,handle_msg,7,
>                             [{file,"gen_fsm.erl"},{line,503}]},
>                         {proc_lib,init_p_do_apply,3,
>                             [{file,"proc_lib.erl"},{line,239}]}]},
>                    {gen_fsm,sync_send_all_state_event,
>                        [<0.105.0>,{start,infinity},infinity]}}
>     in function  gen_fsm:sync_send_all_state_event/3 (gen_fsm.erl, line 242)
>     in call from ssl_connection:sync_send_all_state_event/2 (ssl_connection.erl, line 1649)
>     in call from ssl_connection:handshake/2 (ssl_connection.erl, line 97)
>     in call from tls_connection:start_fsm/8 (tls_connection.erl, line 81)
>     in call from ssl_connection:ssl_accept/7 (ssl_connection.erl, line 84)
>_______________________________________________
>Extend mailing list
>Extend at lists.ninenines.eu
>https://lists.ninenines.eu/listinfo/extend
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ninenines.eu/archives/extend/attachments/20140411/9e3c6c32/attachment.html>


More information about the Extend mailing list