Skip to content

Commit 549d536

Browse files
committed
samples: net: https_client: Fix TLS configuration for native_sim
The TLS configuration for native_sim target is currently broken, it fails to parse the certificate used in the sample: net_sock_tls: Failed to parse certificate on tag 42, err: -0x3a00 That's because CONFIG_PSA_WANT_ECC_SECP_R1_384 was missing and the certificate uses this curve. The remaining configs added were needed to pass the handshake with the default example.com host. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
1 parent 6a6fb04 commit 549d536

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

samples/net/https_client/boards/native_sim.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=7168
2828
CONFIG_MBEDTLS_PEM_PARSE_C=y
2929
CONFIG_MBEDTLS_PEM_WRITE_C=y
3030
CONFIG_MBEDTLS_CIPHERSUITE_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256=y
31+
CONFIG_MBEDTLS_CIPHERSUITE_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384=y
32+
CONFIG_MBEDTLS_SSL_SERVER_NAME_INDICATION=y
33+
CONFIG_PSA_WANT_ECC_SECP_R1_384=y
3134

3235
# DNS
3336
CONFIG_DNS_RESOLVER=y

0 commit comments

Comments
 (0)