Skip to content

Commit da1812a

Browse files
committed
Enable tls credential shell
Add a comment about switching between DER and PEM certs for Memfault.
1 parent 57b6e0b commit da1812a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

prj.conf

+8-1
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ CONFIG_NET_L2_WIFI_SHELL=y
4141
CONFIG_MEMFAULT=y
4242
CONFIG_MEMFAULT_LOGGING_ENABLE=y
4343
CONFIG_MEMFAULT_HTTP_ENABLE=y
44-
CONFIG_MEMFAULT_TLS_CERTS_USE_DER=y
4544
CONFIG_MEMFAULT_HTTP_PERIODIC_UPLOAD=y
4645

46+
# Using the DER format certs saves code and memory. To use PEM instead, swap
47+
# the comments on the following two lines.
48+
CONFIG_MEMFAULT_TLS_CERTS_USE_DER=y
49+
# CONFIG_MBEDTLS_PEM_CERTIFICATE_FORMAT=y
50+
4751
# Additional network configuration for Memfault features
4852
CONFIG_DNS_RESOLVER=y
4953
CONFIG_NET_SOCKETS=y
@@ -60,6 +64,9 @@ CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=4096
6064
CONFIG_MBEDTLS_MEMORY_DEBUG=y
6165
CONFIG_MBEDTLS_SHELL=y
6266

67+
CONFIG_BASE64=y
68+
CONFIG_TLS_CREDENTIALS_SHELL=y
69+
6370
# More verbose Memfault component logs
6471
CONFIG_MEMFAULT_LOG_LEVEL_DBG=y
6572

0 commit comments

Comments
 (0)