Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http_get sample with TLS fails on NXP FRDM-MCXN947 #86435

Open
DerekSnell opened this issue Feb 27, 2025 · 0 comments
Open

http_get sample with TLS fails on NXP FRDM-MCXN947 #86435

DerekSnell opened this issue Feb 27, 2025 · 0 comments

Comments

@DerekSnell
Copy link
Contributor

DerekSnell commented Feb 27, 2025

Discussed in #86373

Sample fails with this command using Zephyr tag v4.1.0-rc2

west build -b frdm_mcxn947/mcxn947/cpu0 samples/net/sockets/http_get -- -DEXTRA_CONF_FILE="overlay-tls.conf"

console output:

---- Opened the serial port /dev/ttyACM1 ----
[00:00:00.605,000] <inf> phy_mii: PHY (0) ID 80008000
*** Booting Zephyr OS build v4.1.0-rc2-86-g384fe7a05d7d ***
[00:00:00.606,000] <wrn> net_sock_tls: No entropy device on the system, TLS communication is insecure!
[00:00:05.108,000] <wrn> net_dhcpv4: DHCP server provided more DNS servers than can be saved
[00:00:05.109,000] <inf> net_dhcpv4: Received: 10.5.1.157
[00:00:05.208,000] <inf> http_get: Preparing HTTP GET request for http://google.com:443/
[00:00:05.209,000] <inf> http_get: getaddrinfo status: 0
[00:00:05.209,000] <inf> http_get: addrinfo @0x300247a8: ai_family=1, ai_socktype=1, ai_protocol=6, sa_family=1, sin_port=1bb
[00:00:05.209,000] <inf> http_get: sock = 5
[00:00:05.209,000] <inf> http_get: Connecting to server...
[00:00:08.217,000] <err> net_sock_tls: TLS handshake error: -0x7200
[00:00:08.218,000] <err> http_get: Error: -1
exit

and

[00:00:10.429,000] net_sock_tls: TLS handshake error: -0x7300
[00:00:10.431,000] net_sock_tls: TLS handshake error: -0x7200

Those errors refer to :

/** A message could not be parsed due to a syntactic error. /
#define MBEDTLS_ERR_SSL_DECODE_ERROR -0x7300
/* An invalid SSL record was received. */
#define MBEDTLS_ERR_SSL_INVALID_RECORD -0x7200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant