<?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>How to extend at_client sample to use Mbed TLS vanilla backend supporting TLS on Thingy:91 with nRF Connect SDK v1.5.0?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73315/how-to-extend-at_client-sample-to-use-mbed-tls-vanilla-backend-supporting-tls-on-thingy-91-with-nrf-connect-sdk-v1-5-0</link><description>Hello, 
 I want to extend the at_client sample with vanilla Mbed TLS (delivered with the SDK) supporting TLS. Later on, I want to be able to modify the Mbed TLS vanilla implementation. I already asked a similar question but it looks like I better start</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Mar 2021 23:12:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73315/how-to-extend-at_client-sample-to-use-mbed-tls-vanilla-backend-supporting-tls-on-thingy-91-with-nrf-connect-sdk-v1-5-0" /><item><title>RE: How to extend at_client sample to use Mbed TLS vanilla backend supporting TLS on Thingy:91 with nRF Connect SDK v1.5.0?</title><link>https://devzone.nordicsemi.com/thread/302818?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 23:12:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46602404-0ba7-42ba-a091-ea83bcf61836</guid><dc:creator>Franck_Code</dc:creator><description>&lt;p&gt;&lt;span&gt;My impression was that Zephyr&amp;#39;s integration was dropped because there&amp;nbsp;were no duplicated definitions of Mbed TLS functions. Nevertheless, your answer gives me some new insights.&amp;nbsp;&lt;/span&gt;Thanks a lot!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to extend at_client sample to use Mbed TLS vanilla backend supporting TLS on Thingy:91 with nRF Connect SDK v1.5.0?</title><link>https://devzone.nordicsemi.com/thread/302748?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 13:08:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad0969ba-6617-48bb-8c67-13654194ceb3</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;I have looked over your code, and your previous ticket.&lt;/p&gt;
&lt;p&gt;CONFIG_MBEDTLS=y&lt;br /&gt;CONFIG_MBEDTLS_LIBRARY=y&lt;/p&gt;
&lt;p&gt;I am not entirely clear which mbedTLS &amp;quot;integration version&amp;quot; you want to use. At the moment, you are using both Zephyr&amp;#39;s integration and the Nordic Security Module&amp;#39;s (NSM) vanilla mbedTLS backend.&lt;/p&gt;
&lt;p&gt;In addition to that, you have changed the source code used by the Zephyr-integration to use the same source code as the NSM uses. But, it is using a different configuration file. So you now have the same library built twice, with two different configuration files.&lt;/p&gt;
&lt;p&gt;With that in mind, I believe this set of configuration options should be closer to what you want:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NORDIC_SECURITY_BACKEND=y
CONFIG_MBEDTLS_VANILLA_BACKEND=y
CONFIG_NRF_SECURITY_ADVANCED=y
CONFIG_MBEDTLS_X509_LIBRARY=y
CONFIG_MBEDTLS_TLS_LIBRARY=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With that set of options, your code compiles, except for the mbedtls_hardware_poll function.&lt;/p&gt;
&lt;p&gt;When it comes to the mbedtls_hardware_poll function, it must be provided by the application or NCS. As MBEDTLS_ENTROPY_HARDWARE_ALT is defined in the mbedTLS configuration file, it is not provided by mbedTLS.&lt;/p&gt;
&lt;p&gt;The NSM has an implementation of it which is used for nRF5x devices, and will work for the nRF9160 as well, though it was not yet enabled for the nRF9160 at the time of the NCS v1.5.0 release.&lt;/p&gt;
&lt;p&gt;You can find the changes necessary to include it for the nRF9160 as well in this commit: &lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/commit/01acd15117499f69170c43f18afc770f1b696412"&gt;https://github.com/nrfconnect/sdk-nrfxlib/commit/01acd15117499f69170c43f18afc770f1b696412&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Note the file name change from nrf_security/src/backend/nrf5x/entropy_nrf5x.c to&amp;nbsp; nrf_security/src/backend/entropy/entropy_poll.c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to extend at_client sample to use Mbed TLS vanilla backend supporting TLS on Thingy:91 with nRF Connect SDK v1.5.0?</title><link>https://devzone.nordicsemi.com/thread/302471?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 21:23:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70c74b4c-9041-4950-985a-6476ed4583d6</guid><dc:creator>Franck_Code</dc:creator><description>&lt;p&gt;&lt;span&gt;To me it looks like that entropy can be included like in&lt;br /&gt;C:\Users\UserName\ncs\v1.5.0\nrf\samples\nrf9160\secure_services\src\main.c&lt;br /&gt;(entropy init seems not to be necessary and spm_request_random_number can be used as in entropy_cc310.c)?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to extend at_client sample to use Mbed TLS vanilla backend supporting TLS on Thingy:91 with nRF Connect SDK v1.5.0?</title><link>https://devzone.nordicsemi.com/thread/302443?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 16:35:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aae0ee0-7104-4f98-bcb3-5f3d38dfe078</guid><dc:creator>Franck_Code</dc:creator><description>&lt;p&gt;&lt;span&gt;I would like to use vanilla Mbed TLS which I will later on modify regarding TLS features (Originally, I am coming from &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/73026/how-to-use-latest-mbed-tls-2-26-0-with-nrf-connect-sdk-v1-5-0-on-thingy-91)"&gt;devzone.nordicsemi.com/.../how-to-use-latest-mbed-tls-2-26-0-with-nrf-connect-sdk-v1-5-0-on-thingy-91)&lt;/a&gt;. Switching to the Serial LTE Modem application is no issue and advisable. The first step afterwards then remains, i.e. how best to integrate the entropy&amp;nbsp;and how to configure/replace net_socket.c.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to extend at_client sample to use Mbed TLS vanilla backend supporting TLS on Thingy:91 with nRF Connect SDK v1.5.0?</title><link>https://devzone.nordicsemi.com/thread/302427?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 15:28:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adfde65a-db14-4e0f-a6fe-43649dd99a56</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What are you trying to acheive?&lt;/p&gt;
&lt;p&gt;Depening on what it is you want to do, it might be better to start with the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.0/nrf/applications/serial_lte_modem/README.html"&gt;Serial LTE Modem&lt;/a&gt;, with or without the TLS stack running on the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.0/nrf/applications/serial_lte_modem/doc/slm_description.html#native-tls-sockets"&gt;application core&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to extend at_client sample to use Mbed TLS vanilla backend supporting TLS on Thingy:91 with nRF Connect SDK v1.5.0?</title><link>https://devzone.nordicsemi.com/thread/302332?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 10:09:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f921879a-998b-4c59-92fa-20356ade0fc6</guid><dc:creator>Franck_Code</dc:creator><description>&lt;p&gt;From my understanding, manual entropy integration would be according to &lt;a href="https://tls.mbed.org/kb/how-to/add-a-random-generator"&gt;https://tls.mbed.org/kb/how-to/add-a-random-generator&lt;/a&gt;&amp;nbsp;with&amp;nbsp;&lt;span&gt;NRF_CC3XX_PLATFORM_ENTROPY?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to extend at_client sample to use Mbed TLS vanilla backend supporting TLS on Thingy:91 with nRF Connect SDK v1.5.0?</title><link>https://devzone.nordicsemi.com/thread/302297?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 07:48:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e983cc0-749c-4cb5-a009-11ec7425d66a</guid><dc:creator>Franck_Code</dc:creator><description>&lt;p&gt;Originally, I hoped that &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;config-tls-generic.h&lt;/span&gt; could help but it is only for built-in Mbed TLS.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_MBEDTLS_CFG_FILE.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_MBEDTLS_CFG_FILE.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;blockquote&gt;
&lt;pre class="literal-block"&gt;config &lt;span class="highlighted"&gt;MBEDTLS_CFG_FILE&lt;/span&gt;
    string &amp;quot;mbed TLS configuration file&amp;quot;
    default &amp;quot;config-tls-generic.h&amp;quot;
    depends on &lt;a class="reference internal" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_MBEDTLS_BUILTIN.html#cmdoption-arg-CONFIG_MBEDTLS_BUILTIN"&gt;&lt;code class="xref std std-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;MBEDTLS_BUILTIN&lt;/span&gt;&lt;/code&gt;&lt;/a&gt; &amp;amp;&amp;amp; &lt;a class="reference internal" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_MBEDTLS.html#cmdoption-arg-CONFIG_MBEDTLS"&gt;&lt;code class="xref std std-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;MBEDTLS&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;/pre&gt;
&lt;pre class="literal-block"&gt;    help &lt;/pre&gt;
&lt;pre class="literal-block"&gt;      Use a specific mbedTLS configuration file. The default config file file can be tweaked with Kconfig.&lt;/pre&gt;
&lt;pre class="literal-block"&gt;      The default configuration is suitable to communicate with majority of HTTPS servers on the Internet, &lt;/pre&gt;
&lt;pre class="literal-block"&gt;      but has relatively many features enabled. To optimize resources for special TLS usage, use available &lt;/pre&gt;
&lt;pre class="literal-block"&gt;      Kconfig options, or select an alternative config.&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to extend at_client sample to use Mbed TLS vanilla backend supporting TLS on Thingy:91 with nRF Connect SDK v1.5.0?</title><link>https://devzone.nordicsemi.com/thread/302266?ContentTypeID=1</link><pubDate>Sun, 28 Mar 2021 22:34:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:878bd2b6-a159-495b-a86e-8fd5532d0130</guid><dc:creator>Franck_Code</dc:creator><description>&lt;p&gt;I would like to mention that adding the following two options did not help:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;CONFIG_NRF_SECURITY_RNG=y&lt;br /&gt;CONFIG_ENTROPY_GENERATOR=y&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>