[erlang-questions] DTLS Status and examples?
Myers Carpenter
myers@REDACTED
Mon May 5 20:59:11 CEST 2014
Hello,
I'm attempting to connect the data channel in webrtc to Erlang. You can
read about my project here https://github.com/myers/exwebrtc .
I'm trying to understand where the DTLS code in Erlang is currently and
where I might be able to pitch in.
I'm attempting to start a DTLS server and then connect to it via "openssl
s_client"
Here's the code so far
-module(dtls_server).
-export([start/0]).
start() ->
ssl:start(),
{ok, _Socket} = dtls:listen(4499, [
{mode, binary},
{reuseaddr, true},
{certfile, "server.cert"},
{keyfile, "server.pkey"},
{active, true},
{ciphers, [{ecdhe_rsa, aes_128_cbc, sha}]}
]).
If we try with no "ciphers" listed or if we try with that one cipher suite
we get this error:
2> dtls_server:start().
** exception error: no match of right hand side value {error,
{options,{ciphers,[{ecdhe_rsa,aes_128_cbc,sha}]}}}
in function dtls_server:start/0 (src/dtls_server.erl, line 7)
Thanks,
myers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140505/f3a7c3c3/attachment.htm>
More information about the erlang-questions
mailing list