<?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>Upgrading project from NCS 2.7.0 to 3.0.2 breaks native TLS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122842/upgrading-project-from-ncs-2-7-0-to-3-0-2-breaks-native-tls</link><description>Hi, 
 
 I&amp;#39;m attempting to upgrade an existing project (which is still in the development stage) from NCS 2.7.0 to 3.0.2; this seems to break native TLS, and I&amp;#39;m not sure why. 
 Would you be willing to take a look? I&amp;#39;ve created a trimmed down version of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Jul 2025 14:42:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122842/upgrading-project-from-ncs-2-7-0-to-3-0-2-breaks-native-tls" /><item><title>RE: Upgrading project from NCS 2.7.0 to 3.0.2 breaks native TLS</title><link>https://devzone.nordicsemi.com/thread/543630?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 14:42:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04c2286b-995d-4c39-9f1b-4ff75a7e94c2</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You can check if there is any change when you disable CONFIG_NORDIC_SECURITY_BACKEND in the overlay_native_tls.conf and add two _PSA_WANT_ and RSA configs mentioned previously.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading project from NCS 2.7.0 to 3.0.2 breaks native TLS</title><link>https://devzone.nordicsemi.com/thread/543584?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 09:13:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:149476fd-8400-40a4-92b3-66caac2cf218</guid><dc:creator>basvkesteren</dc:creator><description>&lt;p&gt;Thanks, will look into this and report back.&lt;/p&gt;
&lt;p&gt;But, does this mean that the&amp;nbsp;serial_lte_modem native-tls support is broken? (&lt;a id="" href="https://github.com/nrfconnect/sdk-nrf/blob/main/applications/serial_lte_modem/overlay-native_tls.conf"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/applications/serial_lte_modem/overlay-native_tls.conf&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Because that&amp;#39;s what my project is based upon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading project from NCS 2.7.0 to 3.0.2 breaks native TLS</title><link>https://devzone.nordicsemi.com/thread/543548?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2025 15:09:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5039e1be-f722-4aeb-a240-7d9e6cb7f302</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Here are some observations and recommendations.&lt;br /&gt;You are using a lot of legacy configurations as well as CONFIG_NORDIC_SECURITY_BACKEND. It might be that your AES configs and hashes are not properly forwarded to secure image. Please coonsider disabling CONFIG_NORDIC_SECURITY_BACKEND and rely on CONFIG_NRF_SECURITY and PSA crypto configurations moving forward because this is expected to be fully working with TF-M enabled on newer SDK versions. You can find configuration list with PSA dependencies in the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/89ba1294ac9b624e28271a5c71e99193ed4d92a4/samples/crypto/psa_tls/prj.conf#L59"&gt;PSA TLS sample&lt;/a&gt;&amp;nbsp;project configuration. For your ciphersuite support, these configs seem to be missing&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PSA_WANT_ALG_GCM=y
CONFIG_PSA_WANT_ALG_SHA_384=y&lt;/pre&gt;&lt;br /&gt;RSA is not fully supported in PSA crypto. Therefore, several configuration options might be needed. You can refer to RSA configs from this&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/89ba1294ac9b624e28271a5c71e99193ed4d92a4/samples/crypto/psa_tls/overlays/rsa.conf"&gt;RSA overlay&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading project from NCS 2.7.0 to 3.0.2 breaks native TLS</title><link>https://devzone.nordicsemi.com/thread/543490?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2025 12:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca8b749a-cbf2-48a3-9b97-89d7e643b88c</guid><dc:creator>basvkesteren</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Modem firmware is 1.3.7.&lt;/p&gt;
&lt;p&gt;The 3.0.2 project builds on NCS 2.8.0 as-is, there&amp;#39;s no code-change needed. Output is in essence the same, full log attached.&lt;/p&gt;
&lt;p&gt;Wrt debugging; the problem is not how to debug, but understanding of the PSA code. Thats rather dense stuff.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/console_5F00_nativetls_5F00_2.8.txt"&gt;devzone.nordicsemi.com/.../console_5F00_nativetls_5F00_2.8.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading project from NCS 2.7.0 to 3.0.2 breaks native TLS</title><link>https://devzone.nordicsemi.com/thread/542783?ContentTypeID=1</link><pubDate>Thu, 17 Jul 2025 14:09:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a5019ed-8922-48fd-bd71-743e8d6e784f</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Which modem firmware version do you use?&lt;br /&gt;&lt;br /&gt;Can you provide your project in NCS v2.8.0 and show the log where the same error can be seen?&lt;br /&gt;&lt;br /&gt;Have you been able to do some debugging yourself? Here is the information in the documentation -&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/test_and_optimize/debugging.html#debug_configuration"&gt;debugging application&lt;/a&gt;&amp;nbsp;and&lt;br /&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-2-debugging/topic/debugging-in-vs-code/"&gt;debugging in VS Code&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading project from NCS 2.7.0 to 3.0.2 breaks native TLS</title><link>https://devzone.nordicsemi.com/thread/542611?ContentTypeID=1</link><pubDate>Wed, 16 Jul 2025 08:12:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef371569-a67e-406d-ad6b-b57e70e37622</guid><dc:creator>basvkesteren</dc:creator><description>&lt;p&gt;Well, yes, obviously. But that&amp;#39;s the problem...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The errorcode originates in an&amp;nbsp;psa_cipher_encrypt() call, which returns&amp;nbsp;PSA_ERROR_NOT_SUPPORTED&lt;/p&gt;
&lt;p&gt;Why does it return this errorcode, i have no idea. That PSA code is rather hard to debug, i cannot step through it with the debugger.&lt;/p&gt;
&lt;p&gt;It worked on NCS 2.7.0, no longer works on NCS 3.0.2. What changed? Do i need another configuration option? Possible, but which one?&lt;/p&gt;
&lt;p&gt;To narrow it down a bit, the same problem happens on NCS 2.8.0, iow the breaking change appears to be in the 2.7.0 to 2.8.0 update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading project from NCS 2.7.0 to 3.0.2 breaks native TLS</title><link>https://devzone.nordicsemi.com/thread/542535?ContentTypeID=1</link><pubDate>Tue, 15 Jul 2025 13:36:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97feff01-35eb-42ec-9028-ff23bdb41ff5</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Although my log had some differences from what you showed, I have reprlicated your issue. &lt;br /&gt;Looking at&lt;br /&gt;&lt;span&gt;include/mbedtls/cipher.h: #define MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE&amp;nbsp; -0x6080 (selected feature is unavailable), it seems that some configuration option might be missing which would need to be enabled in your confguration. You could try to debug it yourself looking at the failing lines in the log (ssl_tls.c and ssl12_tls_client.c)&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading project from NCS 2.7.0 to 3.0.2 breaks native TLS</title><link>https://devzone.nordicsemi.com/thread/542421?ContentTypeID=1</link><pubDate>Mon, 14 Jul 2025 16:12:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e40c0abd-916e-4503-9048-2bb6004c07ac</guid><dc:creator>basvkesteren</dc:creator><description>&lt;p&gt;That line is from the&amp;nbsp;NRF_MODEM_LIB_ON_CFUN handler in modem.c, the modem has switched to full functionality. Not an error really..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading project from NCS 2.7.0 to 3.0.2 breaks native TLS</title><link>https://devzone.nordicsemi.com/thread/542416?ContentTypeID=1</link><pubDate>Mon, 14 Jul 2025 15:58:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88ac1769-695d-4e85-bb31-416a6d5227fe</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;It is unexpected that changing functional mode of the modem causes modem error. Do you have any additional information about the error &amp;lt;err&amp;gt; modem: Functional mode has changed to 1?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading project from NCS 2.7.0 to 3.0.2 breaks native TLS</title><link>https://devzone.nordicsemi.com/thread/542319?ContentTypeID=1</link><pubDate>Mon, 14 Jul 2025 06:57:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cfd3618-77ac-4503-aafe-3ef1b84796f1</guid><dc:creator>basvkesteren</dc:creator><description>&lt;p&gt;Think I see the problem, the projects i uploaded tried to get version-info from SVN, this fails because they are exports and thus the build fails.&lt;/p&gt;
&lt;p&gt;Fixed projects attached:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/test_5F00_nativetls_5F00_3.0.2.zip"&gt;devzone.nordicsemi.com/.../test_5F00_nativetls_5F00_3.0.2.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/test_5F00_nativetls_5F00_2.7.zip"&gt;devzone.nordicsemi.com/.../test_5F00_nativetls_5F00_2.7.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading project from NCS 2.7.0 to 3.0.2 breaks native TLS</title><link>https://devzone.nordicsemi.com/thread/542275?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2025 17:47:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3588941-c6a2-49c3-88f1-068e69c581ee</guid><dc:creator>basvkesteren</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Both projects are for the nrf9160-dk, I made them specifically so you could easily reproduce it.. How does the build fail for you, what is the error?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll recheck them first thing on monday.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrading project from NCS 2.7.0 to 3.0.2 breaks native TLS</title><link>https://devzone.nordicsemi.com/thread/542274?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2025 17:26:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6ae5045-fc35-47d6-b273-91ddc87988b4</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Is your error reproducible on nrf9160-dk? I have tried to build your project in NCS v3.0.2. The build was unsuccessful, but I could not replicate the same error.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>