<?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>DTLS with certificate handshake debugging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124038/dtls-with-certificate-handshake-debugging</link><description>Hello. I&amp;#39;m trying to connect to a CoAP server (Thingsboard) with a certificate based DTLS socket. In Wireshark I see that the handshake failes, but not why. I post the relevant code here: 
 
 
 proj.conf 
 
 How can I activate debug messages, so that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Sep 2025 18:11:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124038/dtls-with-certificate-handshake-debugging" /><item><title>RE: DTLS with certificate handshake debugging</title><link>https://devzone.nordicsemi.com/thread/547970?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 18:11:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf657045-854f-4fa5-afde-457a0e770acd</guid><dc:creator>Christian77</dc:creator><description>&lt;p&gt;It&amp;#39;s working now. There where two problems I&amp;#39;ve got:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Misconfigured server with an expired certificate.&lt;/li&gt;
&lt;li&gt;If I specify a ciphersuit list (with setsockopt()) it&amp;#39;s not working. If I do not set such a list (all available ciphers are presented to the server) it is working.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;BR&lt;br /&gt;Christian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTLS with certificate handshake debugging</title><link>https://devzone.nordicsemi.com/thread/547560?ContentTypeID=1</link><pubDate>Wed, 03 Sep 2025 04:56:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c584348b-98d8-473a-b74a-efffd5e7d250</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;There is a modem trace, which contains some more information than the IP capture, but the additional information is AFAIK only readable by Nordic.&lt;/p&gt;
&lt;p&gt;In the past there was some documentation about the limits in TLS and DTLS and in some topics, there was a difference between TLS and DTLS. Currently I didn&amp;#39;t find that again in the new documentation pages.&lt;/p&gt;
&lt;p&gt;In general. using RSA for embedded is frequently a decision, which comes with pain. ECDSA certificates are smaller and work usually with less pain.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTLS with certificate handshake debugging</title><link>https://devzone.nordicsemi.com/thread/547538?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 18:22:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b14300c-56fc-4d3e-8d82-d22713916451</guid><dc:creator>Christian77</dc:creator><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;Modem firmware version is 2.0.2&lt;br /&gt;Is there a way to activate more debugging output of the modem to see what is happening?&lt;br /&gt;&lt;span&gt;With CONFIG_LOG_DEFAULT_LEVEL=4 there are still no modem debug infos.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;br /&gt;BR&lt;br /&gt;Christian&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTLS with certificate handshake debugging</title><link>https://devzone.nordicsemi.com/thread/547376?ContentTypeID=1</link><pubDate>Mon, 01 Sep 2025 19:08:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d37b28e-b443-4a59-ae10-987e756950e0</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;From the capture:&lt;/p&gt;
&lt;p&gt;The &amp;quot;Client Hello&amp;quot; doesn&amp;#39;t contain any cipher suite (except the TLS_EMPTY_RENEGOTIATION_INFO_SCSV). Therefore the handshake is denied by the server with a &amp;quot;Handshake Failure&amp;quot;.&lt;/p&gt;
&lt;p&gt;Not sure, why the modem don&amp;#39;t send a cipher suite. Maybe the DTLS implementation of the modem is compiled without support for&amp;nbsp;MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (please provide the modem firmware version to check). Or the CA_CHAIN doesn&amp;#39;t contain a RSA certificate, or that could not be used by the modem for some reasons.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTLS with certificate handshake debugging</title><link>https://devzone.nordicsemi.com/thread/547373?ContentTypeID=1</link><pubDate>Mon, 01 Sep 2025 18:26:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:953826f4-bcee-4673-b6d1-c741c9a83d37</guid><dc:creator>Christian77</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I followed the example from nrf IoT fundamental course:&amp;nbsp;&lt;a id="" href="https://academy.nordicsemi.com/courses/cellular-iot-fundamentals/lessons/lesson-5-cellular-fundamentals/topic/lesson-5-exercise-2/"&gt;https://academy.nordicsemi.com/courses/cellular-iot-fundamentals/lessons/lesson-5-cellular-fundamentals/topic/lesson-5-exercise-2/&lt;/a&gt;&lt;br /&gt;Except that I do not use PSK but certificate. Is there an example for CoAP over DTLS with certificate which I can follow?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m attaching a wireshark log:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/coap_5F00_dtls_5F00_handshake_5F00_error.pcapng"&gt;devzone.nordicsemi.com/.../coap_5F00_dtls_5F00_handshake_5F00_error.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And the log with&amp;nbsp;&lt;span&gt;CONFIG_LOG_DEFAULT_LEVEL=4:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/devttyACM0.log"&gt;devzone.nordicsemi.com/.../devttyACM0.log&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;br /&gt;BR&lt;br /&gt;Christian&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTLS with certificate handshake debugging</title><link>https://devzone.nordicsemi.com/thread/547347?ContentTypeID=1</link><pubDate>Mon, 01 Sep 2025 13:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b49f465-0ddd-480e-b16f-23cd95cfcfd1</guid><dc:creator>Benjamin</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;Please provide a Wireshark capture and the logs. To enable debug-level logging, set &lt;code&gt;CONFIG_LOG_DEFAULT_LEVEL=4&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Benjamin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DTLS with certificate handshake debugging</title><link>https://devzone.nordicsemi.com/thread/547309?ContentTypeID=1</link><pubDate>Mon, 01 Sep 2025 10:35:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6106694b-4e9b-4320-bca7-aea0898aad12</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;If you followed an example, maybe a &amp;quot;short-cut&amp;quot; would be, if you provide a link to that.&lt;/p&gt;
&lt;p&gt;And if you have a wireshark capture, that may also help, if you provide it.&lt;/p&gt;
&lt;p&gt;In general it may require to check, if all components (e.g. modem and server) really supports&amp;nbsp;MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 for DTLS, including the size of the used certificates. And also checks, if that provided&amp;nbsp;CA_CHAIN certificate also fits for that cipher suite.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>