<?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>TLS in OT CLI example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106008/tls-in-ot-cli-example</link><description>Hi, 
 Currently I am trying to get the TLS comms over TCP over OpenThread to work in the CLI example (using Zephyr, which we have combined with our own app). TCP works fine using the OT CLI. The TLS handshake fails with error -27136 or -0x6a00 which is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Nov 2023 13:00:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106008/tls-in-ot-cli-example" /><item><title>RE: TLS in OT CLI example</title><link>https://devzone.nordicsemi.com/thread/457844?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 13:00:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7ced972-5dbd-4b5b-8dad-b6a3ce689b90</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Aha, now I understand what is happening! Thanks for the explanation.&lt;/p&gt;
&lt;p&gt;As you said, it is probably best to test with different sizes of MBEDTLS_HEAP_SIZE first, and see where that gets you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TLS in OT CLI example</title><link>https://devzone.nordicsemi.com/thread/457800?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 10:39:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7554ede0-6b3a-4d7f-8dab-0db726351db5</guid><dc:creator>BenFT</dc:creator><description>&lt;p&gt;We have the OT CLI incorporated with our application/build. The initial task was to see if we could add all the required libraries to the project, check they work (as much with the CLI), to evaluate the required footprint for our final hardware. So our testing of TCP is with the OT CLI within our application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TLS in OT CLI example</title><link>https://devzone.nordicsemi.com/thread/457797?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 10:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7571fcaa-9be5-4ebe-905c-d1044d084d90</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;But did TCP work for your application before you added TLS to your application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TLS in OT CLI example</title><link>https://devzone.nordicsemi.com/thread/457783?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 09:50:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3362b1ec-97b2-407a-bec3-5921f1d980b1</guid><dc:creator>BenFT</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;quot;Can you use TCP alone for your application, where TLS does not work?&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We will be adding MQTT and AWS-IOT libraries next so TLS is required for that.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TLS in OT CLI example</title><link>https://devzone.nordicsemi.com/thread/457776?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 09:25:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6d0731c-22c0-43fe-b3a5-c95444638f13</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="BenFT"]Yes, the TCP example works fine. I can use the &amp;quot;ot tcp benchmark&amp;quot; successfully.[/quote]
&lt;p&gt;&amp;quot;ot tcp benchmark&amp;quot; would be for the OT CLI, where TLS works fine, right? &lt;br /&gt;Can you use TCP alone for your application, where TLS does not work?&lt;/p&gt;
[quote user="BenFT"]MBEDTLS_HEAP_SIZE[/quote]
&lt;p&gt;Yes, I think it is a good idea to try to alter that. Please list which sizes work and which do not&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TLS in OT CLI example</title><link>https://devzone.nordicsemi.com/thread/457767?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 09:05:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29be0e86-1c0f-4947-8822-8f137798cce7</guid><dc:creator>BenFT</dc:creator><description>&lt;p&gt;nrf/VERSION is 2.4.1&lt;br /&gt;west.yml mostly refers to 2.4.1 the NCS version&lt;/p&gt;
&lt;p&gt;Yes, the TCP example works fine. I can use the &amp;quot;ot tcp benchmark&amp;quot; successfully.&lt;/p&gt;
&lt;p&gt;One of the things I changed in the config for TLS was that&lt;span&gt;&amp;nbsp;I have reduced the MBEDTLS_HEAP_SIZE as it was massive before and doesn&amp;#39;t fit the DK with the other code. I might try altering that.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TLS in OT CLI example</title><link>https://devzone.nordicsemi.com/thread/457760?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 08:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af94710b-098f-49ef-8650-511fd8192705</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="BenFT"]&lt;p&gt;NCS is 2.4.1.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t actually see the SDK version - in the nrf directory there is version files but they are for NCS. In fact every mention of version is 2.4.1.&amp;nbsp;This was all loaded with Zephyr and West.&amp;nbsp;If you can tell me a file to look in, I will update.&lt;/p&gt;[/quote]
&lt;p&gt;&amp;quot;git status&amp;quot; inside the nrf folder. Or see nrf/VERSION file.&lt;/p&gt;
&lt;p&gt;Have you been able to use TCP without TLS in your project before enabling TLS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TLS in OT CLI example</title><link>https://devzone.nordicsemi.com/thread/457348?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2023 13:57:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afc2972e-629c-4eda-a583-643cc0b47769</guid><dc:creator>BenFT</dc:creator><description>&lt;p&gt;NCS is 2.4.1.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t actually see the SDK version - in the nrf directory there is version files but they are for NCS. In fact every mention of version is 2.4.1.&amp;nbsp;This was all loaded with Zephyr and West.&amp;nbsp;If you can tell me a file to look in, I will update.&lt;/p&gt;
&lt;p&gt;mbedtls was only pulled in to try to get TLS working.&lt;/p&gt;
&lt;p&gt;The sample&lt;br /&gt;samples\net\sockets\echo_client\echo_client\overlay-tls.conf&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MAIN_STACK_SIZE&lt;/span&gt;&lt;span&gt;=4096&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_BUF_RX_COUNT&lt;/span&gt;&lt;span&gt;=100&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_BUF_TX_COUNT&lt;/span&gt;&lt;span&gt;=100&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;# TLS configuration&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_BUILTIN&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_ENABLE_HEAP&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_HEAP_SIZE&lt;/span&gt;&lt;span&gt;=60000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN&lt;/span&gt;&lt;span&gt;=2048&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_SOCKETS_SOCKOPT_TLS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_SOCKETS_TLS_MAX_CONTEXTS&lt;/span&gt;&lt;span&gt;=4&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_SOCKETS_ENABLE_DTLS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_POSIX_MAX_FDS&lt;/span&gt;&lt;span&gt;=8&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;was used as the basis to add the relevant sub-modules.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TLS in OT CLI example</title><link>https://devzone.nordicsemi.com/thread/457330?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2023 13:22:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:438f9e7f-97c5-40d5-ba5b-f093460debce</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which version of the nRF Connect SDK do you use?&lt;/p&gt;
&lt;p&gt;Can you elaborate a bit on how you have tried to tune the mbedtls settings?&lt;/p&gt;
&lt;p&gt;Do you use mbedtls only for tls or also for the crypto?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>