[erlang-questions] DTLS Status and examples?

Myers Carpenter myers@REDACTED
Mon May 5 20:59:11 CEST 2014


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

Here's the code so far


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,

     in function  dtls_server:start/0 (src/dtls_server.erl, line 7)


-------------- 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