From 7a2b97cd92f29b75643d116a4471a2f39b9bddc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eivind=20J=C3=B8lsgard?= Date: Wed, 16 Aug 2023 14:57:51 +0200 Subject: [PATCH] samples: cellular: https_client: update tfm-mbedtls overlay MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update TF-M Mbed TLS overlay for https_client sample. Signed-off-by: Eivind Jølsgard --- .../releases/release-notes-changelog.rst | 4 ++++ samples/cellular/https_client/overlay-tfm_mbedtls.conf | 3 +++ samples/cellular/https_client/sample.yaml | 8 ++++++++ 3 files changed, 15 insertions(+) diff --git a/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst b/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst index 0d7cce23a86..f639757b5ce 100644 --- a/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst +++ b/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst @@ -350,6 +350,10 @@ Cellular samples (renamed from nRF9160 samples) * Updated credentials for the HTTPS connection. +* :ref:`https_client` sample: + + * Updated the TF-M Mbed TLS overlay to fix an issue when connecting to the server. + * :ref:`nrf_cloud_rest_cell_pos_sample` sample: * Added: diff --git a/samples/cellular/https_client/overlay-tfm_mbedtls.conf b/samples/cellular/https_client/overlay-tfm_mbedtls.conf index 008df5db04d..ed1a466f856 100644 --- a/samples/cellular/https_client/overlay-tfm_mbedtls.conf +++ b/samples/cellular/https_client/overlay-tfm_mbedtls.conf @@ -10,11 +10,14 @@ CONFIG_MBEDTLS_ENABLE_HEAP=y CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN=4096 CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN=4096 CONFIG_MBEDTLS_HEAP_SIZE=32768 +CONFIG_MBEDTLS_RSA_C=y CONFIG_MBEDTLS_TLS_LIBRARY=y CONFIG_MBEDTLS_X509_LIBRARY=y CONFIG_MBEDTLS_PKCS1_V15=y CONFIG_NRF_SECURITY_ADVANCED=y CONFIG_NORDIC_SECURITY_BACKEND=y +CONFIG_PSA_CRYPTO_DRIVER_CC3XX=y CONFIG_PSA_WANT_ALG_SHA_1=y CONFIG_PSA_WANT_ALG_RSA_PKCS1V15_CRYPT=y CONFIG_PSA_WANT_ALG_RSA_PKCS1V15_SIGN=y +CONFIG_PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY=y diff --git a/samples/cellular/https_client/sample.yaml b/samples/cellular/https_client/sample.yaml index 9c8ea45afd0..90722f06f53 100644 --- a/samples/cellular/https_client/sample.yaml +++ b/samples/cellular/https_client/sample.yaml @@ -8,3 +8,11 @@ tests: - nrf9161dk_nrf9161_ns platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns tags: ci_build + sample.cellular.https_client.tfm-mbedtls: + build_only: true + extra_args: OVERLAY_CONFIG="overlay-tfm_mbedtls.conf" + integration_platforms: + - nrf9160dk_nrf9160_ns + - nrf9161dk_nrf9161_ns + platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns + tags: ci_build