<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>CoAP with DTLS 1.2 on nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81248/coap-with-dtls-1-2-on-nrf9160</link><description>Hi all, 
 looking for samples for using CoAP with DTLS 1.2 (PSK) on nRF9160. All the samples I can find are not using DTLS. Highly appreciate any hint! 
 Thank in advance, 
 Andre</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Nov 2021 08:52:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81248/coap-with-dtls-1-2-on-nrf9160" /><item><title>RE: CoAP with DTLS 1.2 on nRF9160</title><link>https://devzone.nordicsemi.com/thread/336999?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 08:52:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4a3291f-fed7-4cc7-a86e-12310e5a6525</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Could you please elaborate more on what you are trying to achieve? From our modem FW release notes it states:&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Limitations
***************
- TLS/DTLS
    - Up to three simultaneous TLS/DTLS connections are possible.
    - Maximum server certificate chain size has a limit of 4kB.
    - Server certificate expiry time is not verified.
    - pkcs#8 is not supported.
    - Absolute maximum number of supported credentials is 32. The actual amount depends on size of
      credentials as memory area reserved for credentials may be a limiting factor as well.
    - DTLS supports PSK authentication only.
    - 2kB secure socket buffer size.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So PSK based DTLS is supported.&amp;nbsp;&lt;/p&gt;
[quote user="Andre23t"]What approach would you recommend to find some examples for using CoAP with PSK-based DTLS authentication?[/quote]
&lt;p&gt;We have several samples in which&amp;nbsp;TLS/DTLS is used, I recommend looking through our &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.1/nrf/samples/samples_nrf9160.html#nrf9160-samples"&gt;official nRF9160 samples&lt;/a&gt;, and the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.1/nrfxlib/nrf_modem/doc/tls_dtls_configuration.html"&gt;modem library documentation on TLS/DTLS configuration&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP with DTLS 1.2 on nRF9160</title><link>https://devzone.nordicsemi.com/thread/336941?ContentTypeID=1</link><pubDate>Mon, 01 Nov 2021 19:12:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a999013a-da59-4de7-a904-92560c82b915</guid><dc:creator>Andre23t</dc:creator><description>&lt;p&gt;Thanks for your answer &amp;Oslash;yvind! I am using NCS 1.7.1 and will examine the download client sample , thanks for that. Having a first look to the source code of nordic_nrf_9160/sdk-nrf/samples/nrf9160/download/src/main.c it seems like the sample is using certificate for authentication both for HTTP and CoAP. What approach would you recommend to find some examples for using CoAP with PSK-based DTLS authentication? Thanks for any hint&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP with DTLS 1.2 on nRF9160</title><link>https://devzone.nordicsemi.com/thread/336864?ContentTypeID=1</link><pubDate>Mon, 01 Nov 2021 12:49:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0481c3f-e8a5-4136-b9a3-279783153515</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Andre,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What version of NCS are you working on? The&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.1/nrf/libraries/networking/download_client.html?highlight=dtls#coap-and-coaps-dtls-1-2"&gt;Download client library can use CoAPS (DTLS 1.2)&lt;/a&gt;. Have a &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.1/nrf/samples/nrf9160/download/README.html?highlight=dtls#nrf9160-download-client"&gt;look at the&amp;nbsp;nRF9160: Download client sample&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>