<?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>nRF9160: Offloaded sockets can&amp;#39;t use MBEDTLS_USE_PSA_CRYPTO with RSA Certificates</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119170/nrf9160-offloaded-sockets-can-t-use-mbedtls_use_psa_crypto-with-rsa-certificates</link><description>I have app that&amp;#39;s using MBedTLS and offloaded sockets on the nRF9160 modem. I&amp;#39;m using NCS 2.9.0 and it appears to me that it&amp;#39;s not possible to set CONFIG_MBEDTLS_USE_PSA_CRYPTO when RSA certificates are required. 
 I have tried many combinations of config</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Jul 2025 15:41:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119170/nrf9160-offloaded-sockets-can-t-use-mbedtls_use_psa_crypto-with-rsa-certificates" /><item><title>RE: nRF9160: Offloaded sockets can't use MBEDTLS_USE_PSA_CRYPTO with RSA Certificates</title><link>https://devzone.nordicsemi.com/thread/543797?ContentTypeID=1</link><pubDate>Mon, 28 Jul 2025 15:41:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57462355-8cb3-458e-b18d-3b83cc9a51dd</guid><dc:creator>Jaro</dc:creator><description>&lt;p&gt;Hi Voxorion, hi Susheel,&lt;/p&gt;
&lt;p&gt;we have exactly the same problem, that we cannot parse the RSA certificate provided by our server.&lt;br /&gt;Same error code -0x262e, same config dependency between&amp;nbsp;&lt;span&gt;MBEDTLS_RSA_C&amp;nbsp; &amp;lt;--&amp;gt;&amp;nbsp;CONFIG_MBEDTLS_USE_PSA_CRYPTO. Using ECC certificates is also not an option since we have no control over the provided certificate.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We are currently on NCS release 3.0.2 so apparently the teased dependency breaks have not released so far.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Therefore my question:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;a) Is there any known workaround so far to somehow parse RSA certificates with CONFIG_MBEDTLS_USE_PSA_CRYPTO enabled?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;b) Is there any roadmap on when the dependencies to the (soon to be) deprecated&amp;nbsp;MBEDTLS_LEGACY API will be released?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you have any helpful information, we would really much appreciate your feedback.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks in advance!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jaro&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: Offloaded sockets can't use MBEDTLS_USE_PSA_CRYPTO with RSA Certificates</title><link>https://devzone.nordicsemi.com/thread/524405?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 15:23:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1370d201-8b07-4d87-b144-38ddaef109d6</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Voxorin, it seems like we still need legacy crypto for some cases. I think by sdk release version 3.0.0 we might be able to break the dependency on the legacy crypto completely. But this is not a promise but just a guideline on our intention. Keeping that in mind, you can probably ignore that warning and continue your development and in few months you wont see this warning when you upgrade the sdk.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: Offloaded sockets can't use MBEDTLS_USE_PSA_CRYPTO with RSA Certificates</title><link>https://devzone.nordicsemi.com/thread/524156?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2025 18:45:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbf0ddfa-58f0-4021-9513-0cfa9d45089d</guid><dc:creator>Voxorin</dc:creator><description>&lt;p&gt;I would like to use ECC certificates, but both vendors I work with only have servers that use RSA certificates (ISRG Root X1 and Amazon Root CA 1).&lt;/p&gt;
&lt;p&gt;It seems a bit strange that RSA certificates would be considered deprecated when they&amp;#39;re still widely in use.&lt;/p&gt;
&lt;p&gt;Maybe I missed something, but the MbedTLS PSA Crypto API supports RSA and it doesn&amp;#39;t appear to be deprecated by MbedTLS. So why doesn&amp;#39;t the NCS version of the PSA Crypto API support RSA?&lt;/p&gt;
&lt;p&gt;See: &lt;a href="https://mbed-tls.readthedocs.io/en/latest/getting_started/psa/#signing-a-message-using-rsa"&gt;&amp;quot;The PSA Crypto API supports encrypting, decrypting, signing and verifying messages using public key signature algorithms, such as RSA or ECDSA.&amp;quot;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: Offloaded sockets can't use MBEDTLS_USE_PSA_CRYPTO with RSA Certificates</title><link>https://devzone.nordicsemi.com/thread/524110?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2025 14:05:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4e84215-0cc8-4ab1-beca-e9603ac1bbb4</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Voxorin,&lt;/p&gt;
&lt;p&gt;You seem right, seems like there is this dependency of MBEDTLS_RSA on a deprecated&amp;nbsp;&amp;nbsp;&lt;code&gt;CONFIG_MBEDTLS_LEGACY_CRYPTO_C&lt;/code&gt;. I think the best alternative for you, if you do not want to rely on deprecated configs, for future proofing your design, it might be best to use ECC certificates (which are supported by the PSA_CRYPTO&amp;nbsp; API in our solution) rather than RSA.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>