<?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>MBedTLS + PSA cannot connect because RSA is default on (v3.1.0 -&amp;gt; v3.1.1)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124663/mbedtls-psa-cannot-connect-because-rsa-is-default-on-v3-1-0---v3-1-1</link><description>Hello 
 There has been an interesting braking change between SDK v3.1.0 -&amp;gt; v3.1.1. When using PSA (CONFIG_MBEDTLS_USE_PSA_CRYPTO=y) and a server with signature algorithm SHA384withECDSA, MbedTLS successfully connects to the server with v3.1.0. But when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Sep 2025 12:28:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124663/mbedtls-psa-cannot-connect-because-rsa-is-default-on-v3-1-0---v3-1-1" /><item><title>RE: MBedTLS + PSA cannot connect because RSA is default on (v3.1.0 -&gt; v3.1.1)</title><link>https://devzone.nordicsemi.com/thread/550020?ContentTypeID=1</link><pubDate>Mon, 29 Sep 2025 12:28:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bff2ed6c-6f51-43a0-af11-5e0f549c3aae</guid><dc:creator>pcspets</dc:creator><description>&lt;p&gt;OK, fair enough. But most peculiar is that when RSA stays on (&lt;span&gt;CONFIG_MBEDTLS_RSA_C=y), I actually can connect to a server that has RSA certificate :). &lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MBedTLS + PSA cannot connect because RSA is default on (v3.1.0 -&gt; v3.1.1)</title><link>https://devzone.nordicsemi.com/thread/550015?ContentTypeID=1</link><pubDate>Mon, 29 Sep 2025 12:09:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:039233c6-5aac-4d23-a5e9-45edb2006a17</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. The dependency I mentionnedin my previous post&amp;nbsp;&lt;span&gt;was there to signal that RSA is not supported for TLS/DTLS and X.509 for PSA, and while that was removed it is still the case. I recommend that you set&amp;nbsp;MBEDTLS_RSA_C=n as from what I understand you have no need for RSA.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MBedTLS + PSA cannot connect because RSA is default on (v3.1.0 -&gt; v3.1.1)</title><link>https://devzone.nordicsemi.com/thread/550010?ContentTypeID=1</link><pubDate>Mon, 29 Sep 2025 11:36:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a994cea-64d4-4ecc-bfde-dcaaa56a2054</guid><dc:creator>pcspets</dc:creator><description>&lt;p&gt;Yes, exactly. I can turn RSA off on v3.1.1 and then connecting to ECDSA-cert server works again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MBedTLS + PSA cannot connect because RSA is default on (v3.1.0 -&gt; v3.1.1)</title><link>https://devzone.nordicsemi.com/thread/549996?ContentTypeID=1</link><pubDate>Mon, 29 Sep 2025 10:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3920a5f0-5612-44ef-8def-27bc509577d6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. But you can turn it off with 3.1.1? In 3.1.0 and before you had a dependency on&amp;nbsp;&lt;code&gt;!MBEDTLS_USE_PSA_CRYPTO&lt;/code&gt; for &lt;code&gt;MBEDTLS_RSA_C&lt;/code&gt; &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/6c6e5b32496eb7203f4c52ae9b3575949eab522e/subsys/nrf_security/Kconfig.legacy#L740"&gt;here&lt;/a&gt;, but this was removed in 3.1.1. I will look more into this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MBedTLS + PSA cannot connect because RSA is default on (v3.1.0 -&gt; v3.1.1)</title><link>https://devzone.nordicsemi.com/thread/549992?ContentTypeID=1</link><pubDate>Mon, 29 Sep 2025 10:16:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c39d9af7-2f5d-4157-b0e3-48cfc9a2e6a4</guid><dc:creator>pcspets</dc:creator><description>&lt;p&gt;Unfortunately I cannot turn&amp;nbsp;&lt;span&gt;CONFIG_MBEDTLS_RSA_C&amp;nbsp;on when usind SDK v3.1.0, because I&amp;#39;m using PSA crypto:&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;CONFIG_MBEDTLS_RSA_C was assigned the value y, but got the value n. Missing dependencies:&lt;br /&gt;OPENTHREAD || (!MBEDTLS_USE_PSA_CRYPTO &amp;amp;&amp;amp; MBEDTLS_LEGACY_CRYPTO_C &amp;amp;&amp;amp; NRF_SECURITY) || (MBEDTLS_BUILTIN &amp;amp;&amp;amp; MBEDTLS_CFG_FILE = &amp;quot;config-mbedtls.h&amp;quot; &amp;amp;&amp;amp; MBEDTLS) || (MBEDTLS_BUILTIN &amp;amp;&amp;amp; MBEDTLS_CFG_FILE = &amp;quot;config-mbedtls.h&amp;quot; &amp;amp;&amp;amp; MBEDTLS &amp;amp;&amp;amp; 0)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So, I attached two config files. One with v3.1.0 (RSA off) and one with v.3.1.1 (RSA on by default). The latter doesn&amp;#39;t work with ECDSA certificates but it can be fixed by&amp;nbsp;&lt;span&gt;&lt;code&gt;CONFIG_MBEDTLS_RSA_C=n&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/config_5F00_files.zip"&gt;devzone.nordicsemi.com/.../config_5F00_files.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MBedTLS + PSA cannot connect because RSA is default on (v3.1.0 -&gt; v3.1.1)</title><link>https://devzone.nordicsemi.com/thread/549975?ContentTypeID=1</link><pubDate>Mon, 29 Sep 2025 08:05:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86c32204-2fea-4047-a30f-691167dc4824</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would expect you should be able to use both yes, and I have not been able to find any references to this issue from before (though I must admit I have also not come across&amp;nbsp;SHA384withECDSA before).&lt;/p&gt;
&lt;p&gt;Is it so that you see the same issue in 3.1.0 and 3.1.1 where it does not work with CONFIG_MBEDTLS_RSA_C=y in the build, and it works in both cases with it not in the build? Can you share the generated .config for your project both with and without it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>