I have app that's using MBedTLS and offloaded sockets on the nRF9160 modem. I'm using NCS 2.9.0 and it appears to me that it's not possible to set CONFIG_MBEDTLS_USE_PSA_CRYPTO when RSA certificates are required.
I have tried many combinations of config options but parsing RSA certificates without MBEDTLS_RSA_C always fails.
D: (0x200178d8): close: ctx=0x2001ef50, fd=0 D: (0x200178d8): Allocated TLS context, 0x200157e0 E: Failed to parse CA certificate, err: -0x262e E: connect() failed. Err 22: Invalid argument D: (0x200178d8): close: ctx=0x200157e0, fd=0 D: (0x200178d8): close: ctx=0x2001ef50, fd=1
MBEDTLS_HAS_RSA_CIPHERSUITE_REQUIREMENTS depends on MBEDTLS_RSA_C which depends on MBEDTLS_LEGACY_CRYPTO_C.
CONFIG_MBEDTLS_USE_PSA_CRYPTO is incompatible with MBEDTLS_LEGACY_CRYPTO_C.
Is it possible to use RSA certificates in NCS without selecting the deprecated CONFIG_MBEDTLS_LEGACY_CRYPTO_C?