Skip to content

Commit bce9dd5

Browse files
[nrf toup][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 34dac89 commit bce9dd5

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

config/nrfconnect/chip-module/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ matter_add_gn_arg_bool ("chip_enable_read_client" CONFIG_CHIP_EN
161161
matter_add_gn_arg_bool ("chip_mdns_minimal" CONFIG_WIFI_NRF70)
162162
matter_add_gn_arg_bool ("chip_mdns_platform" CONFIG_OPENTHREAD)
163163
matter_add_gn_arg_bool ("enable_im_pretty_print" CONFIG_CHIP_IM_PRETTY_PRINT)
164+
matter_add_gn_arg_bool ("chip_crypto_use_x509" CONFIG_CHIP_CRYPTO_USE_X509)
164165

165166
matter_add_gn_arg_bool ("chip_system_config_use_sockets" NOT CONFIG_CHIP_USE_OPENTHREAD_ENDPOINT)
166167
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
@@ -493,4 +493,11 @@ config CHIP_IM_PRETTY_PRINT
493493
Request). This option helps in debugging and development of message exchanges within the Matter
494494
protocol.
495495

496+
config CHIP_CRYPTO_USE_X509
497+
bool "X.509 certificate support"
498+
default n if CHIP_CRYPTO_PSA
499+
default y if MBEDTLS_X509_LIBRARY # We still need it to be enabled if we use mbedTLS as the crypto backend
500+
help
501+
Enables X.509 certificate support for Matter.
502+
496503
endif # CHIP

src/test_driver/nrfconnect/prj.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,6 @@ CONFIG_CHIP_FACTORY_RESET_ERASE_SETTINGS=n
9494
# Use default ICD poll intervals to keep compatibility with tests
9595
CONFIG_CHIP_ICD_SLOW_POLL_INTERVAL=5000
9696
CONFIG_CHIP_ICD_FAST_POLLING_INTERVAL=200
97+
98+
# Enable X.509 certificate support
99+
CONFIG_CHIP_CRYPTO_USE_X509=y

0 commit comments

Comments
 (0)