Skip to content

Commit a6a0b6e

Browse files
[nrfconnect] Add kconfig to control X509 usage
Added the CHIP_CRYPTO_USE_X509 kconfig option to enable or disable the x509 certificate processing for nrfconnect devices. Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
1 parent d9f1bc1 commit a6a0b6e

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

config/nrfconnect/chip-module/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ matter_add_gn_arg_bool ("chip_mdns_minimal" CONFIG_WIFI_NR
160160
matter_add_gn_arg_bool ("chip_config_enable_groupcast" CONFIG_CHIP_ENABLE_GROUPCAST)
161161
matter_add_gn_arg_bool ("chip_mdns_platform" CONFIG_OPENTHREAD)
162162
matter_add_gn_arg_bool ("enable_im_pretty_print" CONFIG_CHIP_IM_PRETTY_PRINT)
163+
matter_add_gn_arg_bool ("chip_crypto_use_x509" CONFIG_CHIP_CRYPTO_USE_X509)
163164

164165
matter_add_gn_arg_bool ("chip_system_config_use_sockets" NOT CONFIG_CHIP_USE_OPENTHREAD_ENDPOINT)
165166
matter_add_gn_arg_bool ("chip_system_config_use_openthread_inet_endpoints" CONFIG_CHIP_USE_OPENTHREAD_ENDPOINT)

config/nrfconnect/chip-module/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,4 +472,11 @@ config CHIP_QSPI_NOR_POWER_MANAGEMENT_SUPPORT
472472
Enables management of nRF QSPI NOR external flash power state
473473
transitions during Matter operations.
474474

475+
config CHIP_CRYPTO_USE_X509
476+
bool "X.509 certificate support"
477+
default n if CHIP_CRYPTO_PSA
478+
default y if MBEDTLS_X509_LIBRARY # We still need it to be enabled if we use mbedTLS as the crypto backend
479+
help
480+
Enables X.509 certificate support for Matter.
481+
475482
endif # CHIP

src/test_driver/nrfconnect/prj.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,6 @@ CONFIG_CHIP_ICD_FAST_POLLING_INTERVAL=200
9797

9898
# Enable system I/O module
9999
CONFIG_PIGWEED_SYS_IO=y
100+
101+
# Enable X.509 certificate support
102+
CONFIG_CHIP_CRYPTO_USE_X509=y

0 commit comments

Comments
 (0)