Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support DTLS and coaps #253

Open
JKRhb opened this issue Jun 16, 2021 · 3 comments
Open

Support DTLS and coaps #253

JKRhb opened this issue Jun 16, 2021 · 3 comments
Labels
enhancement RFC 7252 Issues related to RFC 7252 (original CoAP specification)

Comments

@JKRhb
Copy link
Member

JKRhb commented Jun 16, 2021

Right now the module is missing DTLS support that is needed to use coaps. We should look into how to add support for this.

@JKRhb JKRhb mentioned this issue Sep 11, 2021
@JKRhb JKRhb added the RFC 7252 Issues related to RFC 7252 (original CoAP specification) label Oct 10, 2021
@invaderb
Copy link
Contributor

Do you have any ideas on how to Implement DTLS?

There was a really long thread in the main node js repo about adding DTLS to core
nodejs/node#2398

From the thread having it in core would be best but there hasn't been any headway since 2015 on this so it seams either rolling our own or implementing an already created module possibly something like:
https://github.com/krekeltronics/node-mbed-dtls

@JKRhb
Copy link
Member Author

JKRhb commented Oct 16, 2021

https://github.com/krekeltronics/node-mbed-dtls looks promising :) Maybe we could also use something like https://github.com/AlCalzone/node-dtls-client for the short term (although it only support DTLS on the client side). I also saw this module in the issue you've linked: https://github.com/nodertc/dtls.

Having DTLS in core would be, of course, the best solution and very awesome. In theory, OpenSSL, which seems to be used by node-core, should already be able to support this: https://github.com/nodejs/node/search?q=dtls Maybe this could be utilized to provide "native" DTLS support some day.

@JKRhb
Copy link
Member Author

JKRhb commented Oct 30, 2021

Another library I just discovered is this one: https://www.npmjs.com/package/openssl-dtls It uses the DTLS capabilities already integrated in Node via OpenSSL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement RFC 7252 Issues related to RFC 7252 (original CoAP specification)
Projects
None yet
Development

No branches or pull requests

2 participants