# How to use COAP over DTLS

**URL:** <https://discourse.nodered.org/t/how-to-use-coap-over-dtls/15141>\
**Category:** General\
**Created:** [5 September 2019 09:29 UTC](https://discourse.nodered.org/t/how-to-use-coap-over-dtls/15141 "2019-09-05T09:29:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanjaycoder-r](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sanjaycoder-r/32/12281_2.png) [@Sanjaycoder-r](https://discourse.nodered.org/u/Sanjaycoder-r)\
**Post date:** [5 September 2019 09:29 UTC](https://discourse.nodered.org/t/how-to-use-coap-over-dtls/15141/1 "2019-09-05T09:29:26Z")

</div>

In nodered COAP (node-red-contrib-coap node) it uses UDP by default but if I want to use COAP over DTLS how to configure as there is not options available or is there any alternate available for using COAP over DTLS.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [5 September 2019 09:32 UTC](https://discourse.nodered.org/t/how-to-use-coap-over-dtls/15141/2 "2019-09-05T09:32:58Z")

</div>

You could look at the code for that node, modify it to use DTLS and then create a pull request to include that additional functionality.

---

<div class="post-metadata">

**Author:** ![Sanjaycoder-r](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sanjaycoder-r/32/12281_2.png) [@Sanjaycoder-r](https://discourse.nodered.org/u/Sanjaycoder-r)\
**Post date:** [5 September 2019 09:56 UTC](https://discourse.nodered.org/t/how-to-use-coap-over-dtls/15141/3 "2019-09-05T09:56:08Z")

</div>

Thank you .

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [5 September 2019 17:19 UTC](https://discourse.nodered.org/t/how-to-use-coap-over-dtls/15141/4 "2019-09-05T17:19:37Z")

</div>

> [@Sanjaycoder-r](#):
>
> I want to use COAP over DTLS

The IKEA Trådfri gateway uses this protocol combination. A search of the [flow library](https://flows.nodered.org/?num_pages=1) might give you hints on how to make the changes @ukmoose suggests. Unfortunately, that's all I can tell you -- my Trådfri kit has has been sitting on the shelf waiting for me to run out of other things to do.

---

<div class="post-metadata">

**Author:** ![Sanjaycoder-r](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sanjaycoder-r/32/12281_2.png) [@Sanjaycoder-r](https://discourse.nodered.org/u/Sanjaycoder-r)\
**Post date:** [3 December 2019 07:24 UTC](https://discourse.nodered.org/t/how-to-use-coap-over-dtls/15141/5 "2019-12-03T07:24:21Z")

</div>

Hi all,  
Does anyone have any other suggestions or solutions regarding the above topic?
