Skip to content

Commit

Permalink
samples: Add missing options for secure nRF7 DK builds
Browse files Browse the repository at this point in the history
Add missing PSA related options;
 - CONFIG_PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY
 - CONFIG_PSA_WANT_RSA_KEY_SIZE_2048

These are needed to be able to establish a connection
towards Memfault and AWS IoT for secure builds.
A recent change in our integration with TFM
requires us to now set these options.

Signed-off-by: Simen S. Røstad <[email protected]>
  • Loading branch information
simensrostad authored and rlubos committed Feb 22, 2024
1 parent e0afc17 commit 7976b61
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions samples/debug/memfault/boards/nrf7002dk_nrf5340_cpuapp.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ CONFIG_HEAP_MEM_POOL_SIZE=8192
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_SHELL_STACK_SIZE=4096
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
CONFIG_NET_TX_STACK_SIZE=4096
CONFIG_NET_RX_STACK_SIZE=4096
Expand Down Expand Up @@ -82,13 +81,17 @@ CONFIG_SETTINGS_NVS=y

# Native network stack
CONFIG_NRF_SECURITY=y
CONFIG_PSA_CRYPTO_DRIVER_CC3XX=n
CONFIG_MBEDTLS=y
CONFIG_MBEDTLS_ENABLE_HEAP=y
CONFIG_MBEDTLS_HEAP_SIZE=120000
CONFIG_MBEDTLS_RSA_C=y
CONFIG_MBEDTLS_SSL_SERVER_NAME_INDICATION=y

# PSA
CONFIG_PSA_CRYPTO_DRIVER_CC3XX=n
CONFIG_PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY=y
CONFIG_PSA_WANT_RSA_KEY_SIZE_2048=y

# Certificate management
CONFIG_MEMFAULT_ROOT_CERT_STORAGE_TLS_CREDENTIAL_STORAGE=y
CONFIG_MEMFAULT_NCS_PROVISION_CERTIFICATES=y
Expand Down
4 changes: 4 additions & 0 deletions samples/matter/light_bulb/overlay-aws-iot-integration.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ CONFIG_MQTT_CLEAN_SESSION=y
CONFIG_MBEDTLS_HEAP_SIZE=98304
CONFIG_MBEDTLS_RSA_C=y

# PSA
CONFIG_PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY=y
CONFIG_PSA_WANT_RSA_KEY_SIZE_2048=y

# Zephyr Networking
CONFIG_NET_CONNECTION_MANAGER=y
CONFIG_NET_DHCPV4=y
Expand Down

0 comments on commit 7976b61

Please sign in to comment.