1CONFIG_LWM2M_DTLS_SUPPORT=y
2CONFIG_LWM2M_PEER_PORT=5684
3
4# Select Zephyr mbedtls
5CONFIG_MBEDTLS=y
6CONFIG_MBEDTLS_TLS_VERSION_1_2=y
7
8# Special MbedTLS changes
9CONFIG_MBEDTLS_ENABLE_HEAP=y
10CONFIG_MBEDTLS_HEAP_SIZE=8192
11CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=1500
12CONFIG_MBEDTLS_CIPHER_CCM_ENABLED=y
13
14# Disable RSA, we don't parse certs: saves flash/memory
15CONFIG_MBEDTLS_KEY_EXCHANGE_RSA_ENABLED=n
16# Enable PSK instead
17CONFIG_MBEDTLS_KEY_EXCHANGE_PSK_ENABLED=y
18
19CONFIG_NET_SOCKETS_SOCKOPT_TLS=y
20CONFIG_NET_SOCKETS_TLS_MAX_CONTEXTS=4
21CONFIG_NET_SOCKETS_ENABLE_DTLS=y
22
23# MbedTLS needs a larger stack
24CONFIG_MAIN_STACK_SIZE=2048
25CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
26
27# This has to be match length of LWM2M_APP_ID and if LWM2M_APP_ID is empty,
28# then this has to be match length of CONFIG_BOARD. Default 16 is not enough
29# for some boards, so, increase it to 32.
30CONFIG_LWM2M_SECURITY_KEY_SIZE=32
31