[erlang-questions] DTLS server example?

Ingela Andin ingela.andin@REDACTED
Tue Jun 13 22:22:31 CEST 2017


Hi!

This particular problem described below is fixed on latest master.  And
there are some mor fixes in testing that probably will make OTP 20.
 DTLS support will however be experimental in 20 as we have not had time to
battle tested it as much as we want to to be able to ensure the same
quality as for TLS.

Regards Ingela Erlang/OTP team - Ericsson AB


Slight problem now.

Testing on localhost everything works fine.  Now I am testing on a remote
server with large latency and I keep getting this error on the client,
SSL: {connection, flight_retransmission_timeout} Fatal error: unexpected
message.

I tested using pydtls as the client and this error does not happen.

Also the server shows a "unexpected message" tls_alert. Does not happen
with pydtls as the client.


On Tuesday, June 13, 2017 3:51 AM, Vans S <vans_163@REDACTED> wrote:


Thank you for the encouragement, I got it working, the key was to call
transport_accept then ssl_accept, I was calling one or the other.


On Monday, June 12, 2017 8:34 AM, Ingela Andin <ingela@REDACTED> wrote:


Hi!

Only difference to TLS is that you need to provide the option {protocol,
dtls}.

Regards Ingela
2017-06-12 9:45 GMT+02:00 Andreas Schultz <aschultz@REDACTED>:

> Hi Vans,
>
> I haven't played with it yet, but with the DTLS stack in R20 creating a
> DTLS server should be mostly identical to a TLS server.
>
> For an example on how this works with my old, patched version, you could
> check out the CAPWAP [1] project.
>
> Regards
> Andreas
>
> [1]: https://github.com/travelping/capwap
>
> ----- On Jun 12, 2017, at 9:34 AM, Vans S <vans_163@REDACTED> wrote:
>
> I am trying to implement a DTLS server but having trouble.
>
> The DTLS client works great, used RoadRunners patches and example.
>
> For the server side I had success to what I think was accepting a peer
> using the undocumented 'dtls' module directly, but I cannot send to the
> socket.
>
> Does anyone have a clue how to create a DTLS server in erlang?
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170613/ca48e32e/attachment.htm>


More information about the erlang-questions mailing list