<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE> [99s-extend] ssl
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20ssl&In-Reply-To=%3Cjwxy2j8ajv5369o6n7tbpueg.1397251896146%40email.android.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<style type="text/css">
pre {
white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
}
</style>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="000372.html">
<LINK REL="Next" HREF="000374.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[99s-extend] ssl</H1>
<B>Loïc Hoguin</B>
<A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20ssl&In-Reply-To=%3Cjwxy2j8ajv5369o6n7tbpueg.1397251896146%40email.android.com%3E"
TITLE="[99s-extend] ssl">essen at ninenines.eu
</A><BR>
<I>Fri Apr 11 23:31:36 CEST 2014</I>
<P><UL>
<LI>Previous message: <A HREF="000372.html">[99s-extend] ssl
</A></li>
<LI>Next message: <A HREF="000374.html">[99s-extend] [cowboy] Websocket with Firefox Android
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#373">[ date ]</a>
<a href="thread.html#373">[ thread ]</a>
<a href="subject.html#373">[ subject ]</a>
<a href="author.html#373">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Please report it to erlang-bugs, you'll get better help with ssl bugs there.
--
Loïc Hoguin
<A HREF="http://ninenines.eu">http://ninenines.eu</A>
-------- Original Message --------
From:Samir Sow <<A HREF="https://lists.ninenines.eu/listinfo/extend">samset at wanadoo.fr</A>>
Sent:Fri, 11 Apr 2014 23:23:10 +0200
To:<A HREF="https://lists.ninenines.eu/listinfo/extend">extend at lists.ninenines.eu</A>
Subject:[99s-extend] ssl
><i>Hi,
</I>><i>
</I>><i>Still struggling with ssl.
</I>><i>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.
</I>><i>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.
</I>><i>
</I>><i>Any help welcomed. Thx
</I>><i>
</I>><i>Samir
</I>><i>
</I>><i>{ok, SSLSocket} = ssl:ssl_accept(Socket, [{cacertfile, "priv/cert/cacert.crt"}, {certfile, "priv/cert/server.crt"}, {keyfile, "priv/cert/server.key"}]).
</I>><i>** exception exit: {{badarg,
</I>><i> [{erlang,size,
</I>><i> [[22,3,1,0,176,1,0,0,172,3,3,83,72,89,48,183,175,
</I>><i> 58,145,197,219|...]],
</I>><i> []},
</I>><i> {tls_record,get_tls_records_aux,2,
</I>><i> [{file,"tls_record.erl"},{line,122}]},
</I>><i> {tls_connection,next_tls_record,2,
</I>><i> [{file,"tls_connection.erl"},{line,484}]},
</I>><i> {tls_connection,handle_info,3,
</I>><i> [{file,"tls_connection.erl"},{line,307}]},
</I>><i> {gen_fsm,handle_msg,7,
</I>><i> [{file,"gen_fsm.erl"},{line,503}]},
</I>><i> {proc_lib,init_p_do_apply,3,
</I>><i> [{file,"proc_lib.erl"},{line,239}]}]},
</I>><i> {gen_fsm,sync_send_all_state_event,
</I>><i> [<0.105.0>,{start,infinity},infinity]}}
</I>><i> in function gen_fsm:sync_send_all_state_event/3 (gen_fsm.erl, line 242)
</I>><i> in call from ssl_connection:sync_send_all_state_event/2 (ssl_connection.erl, line 1649)
</I>><i> in call from ssl_connection:handshake/2 (ssl_connection.erl, line 97)
</I>><i> in call from tls_connection:start_fsm/8 (tls_connection.erl, line 81)
</I>><i> in call from ssl_connection:ssl_accept/7 (ssl_connection.erl, line 84)
</I>><i>_______________________________________________
</I>><i>Extend mailing list
</I>><i><A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A>
</I>><i><A HREF="https://lists.ninenines.eu/listinfo/extend">https://lists.ninenines.eu/listinfo/extend</A>
</I>-------------- next part --------------
An HTML attachment was scrubbed...
URL: <<A HREF="http://lists.ninenines.eu/archives/extend/attachments/20140411/9e3c6c32/attachment.html">http://lists.ninenines.eu/archives/extend/attachments/20140411/9e3c6c32/attachment.html</A>>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="000372.html">[99s-extend] ssl
</A></li>
<LI>Next message: <A HREF="000374.html">[99s-extend] [cowboy] Websocket with Firefox Android
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#373">[ date ]</a>
<a href="thread.html#373">[ thread ]</a>
<a href="subject.html#373">[ subject ]</a>
<a href="author.html#373">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
mailing list</a><br>
</body></html>