<div dir="ltr"><div><div><div><div>Hello,<br><br>I'm attempting to connect the data channel in webrtc to Erlang.  You can read about my project here <a href="https://github.com/myers/exwebrtc">https://github.com/myers/exwebrtc</a> .<br>
<br></div>I'm trying to understand where the DTLS code in Erlang is currently and where I might be able to pitch in.  <br><br></div>I'm attempting to start a DTLS server and then connect to it via "openssl s_client"<br>
<br>Here's the code so far<br><br>-module(dtls_server).<br>-export([start/0]).<br> <br>start() -><br>    ssl:start(),<br><br>    {ok, _Socket} = dtls:listen(4499, [<br>      {mode, binary}, <br>      {reuseaddr, true}, <br>
      {certfile, "server.cert"}, <br>      {keyfile, "server.pkey"}, <br>      {active, true},<br>      {ciphers, [{ecdhe_rsa, aes_128_cbc, sha}]}<br>    ]).<br><br><br></div>If we try with no "ciphers" listed or if we try with that one cipher suite we get this error:<br>
<br>2> dtls_server:start().<br>** exception error: no match of right hand side value {error,<br>                                                       {options,{ciphers,[{ecdhe_rsa,aes_128_cbc,sha}]}}}<br>     in function  dtls_server:start/0 (src/dtls_server.erl, line 7)<br>
<br><br></div>Thanks,<br><br>myers<br></div>