HTTPS,handshake error.

WayneJia
Posts: 17
Joined: Thu Aug 03, 2017 7:28 am

HTTPS,handshake error.

Postby WayneJia » Mon Aug 21, 2017 1:02 pm

I user my certificate.But I can not through handshake step.

This is error log.

Thanks.
Best wish.

Code: Select all

[0;32mI (24768) YH_HTTPS: Seeding the random number generator[0m
[0;32mI (24773) YH_HTTPS: Loading the CA root certificate...[0m
[0;32mI (24777) YH_HTTPS: Setting hostname for TLS session...[0m
[0;32mI (24777) YH_HTTPS: Setting up the SSL/TLS structure...[0m
[0;32mI (24784) YH_HTTPS: Connecting to 192.168.0.1:1234...[0m
[0;32mI (24974) YH_HTTPS: Connected.[0m
[0;32mI (24975) YH_HTTPS: Performing the SSL/TLS handshake...[0m
[0;32mI (24976) mbedtls: ssl_tls.c:6306 => handshake
[0m
[0;32mI (24979) mbedtls: ssl_cli.c:3254 client state: 0
[0m
[0;32mI (24984) mbedtls: ssl_tls.c:2430 => flush output
[0m
[0;32mI (24990) mbedtls: ssl_tls.c:2442 <= flush output
[0m
[0;32mI (24995) mbedtls: ssl_cli.c:3254 client state: 1
[0m
[0;32mI (25001) mbedtls: ssl_tls.c:2430 => flush output
[0m
[0;32mI (25007) mbedtls: ssl_tls.c:2442 <= flush output
[0m
[0;32mI (25012) mbedtls: ssl_cli.c:719 => write client hello
[0m
[0;32mI (25029) mbedtls: ssl_tls.c:2715 => write record
[0m
[0;32mI (25040) mbedtls: ssl_tls.c:2430 => flush output
[0m
[0;32mI (25041) mbedtls: ssl_tls.c:2449 message length: 404, out_left: 404
[0m
[0;32mI (25045) mbedtls: ssl_tls.c:2455 ssl->f_send() returned 404 (-0xfffffe6c)
[0m
[0;32mI (25050) mbedtls: ssl_tls.c:2474 <= flush output
[0m
[0;32mI (25056) mbedtls: ssl_tls.c:2864 <= write record
[0m
[0;32mI (25061) mbedtls: ssl_cli.c:1051 <= write client hello
[0m
[0;32mI (25067) mbedtls: ssl_cli.c:3254 client state: 2
[0m
[0;32mI (25073) mbedtls: ssl_tls.c:2430 => flush output
[0m
[0;32mI (25078) mbedtls: ssl_tls.c:2442 <= flush output
[0m
[0;32mI (25084) mbedtls: ssl_cli.c:1403 => parse server hello
[0m
[0;32mI (25090) mbedtls: ssl_tls.c:3738 => read record
[0m
[0;32mI (25096) mbedtls: ssl_tls.c:2222 => fetch input
[0m
[0;32mI (25101) mbedtls: ssl_tls.c:2380 in_left: 0, nb_want: 5
[0m
[0;32mI (28089) mbedtls: ssl_tls.c:2404 in_left: 0, nb_want: 5
[0m
[0;32mI (28090) mbedtls: ssl_tls.c:2405 ssl->f_recv(_timeout)() returned 0 (-0x0000)
[0m
[0;33mW (28093) mbedtls: ssl_tls.c:3767 mbedtls_ssl_fetch_input() returned -29312 (-0x7280)
[0m
[0;33mW (28102) mbedtls: ssl_cli.c:1409 mbedtls_ssl_read_record() returned -29312 (-0x7280)
[0m
[0;32mI (28110) mbedtls: ssl_tls.c:6316 <= handshake
[0m
[0;31mE (28115) YH_HTTPS: mbedtls_ssl_handshake returned -0x7280[0m
[0;31mE (28124) YH_HTTPS: Last error was: -0x7280 - SSL - The connection indicated an EOF[0m

WayneJia
Posts: 17
Joined: Thu Aug 03, 2017 7:28 am

Re: HTTPS,handshake error.

Postby WayneJia » Mon Aug 21, 2017 1:30 pm

I change MBEDTLS_SSL_VERIFY_REQUIRED to MBEDTLS_SSL_VERIFY_OPTIONAL or MBEDTLS_SSL_VERIFY_NONE.

Code: Select all

[0;32mI (178769) YH_HTTPS: Seeding the random number generator[0m
[0;32mI (178774) YH_HTTPS: Loading the CA root certificate...[0m
[0;32mI (178780) YH_HTTPS: Setting hostname for TLS session...[0m
[0;32mI (178780) YH_HTTPS: Setting up the SSL/TLS structure...[0m
[0;32mI (178786) YH_HTTPS: Connecting to 192.168.0.1:1234...[0m
[0;32mI (179518) YH_HTTPS: Connected.[0m
[0;32mI (179519) YH_HTTPS: Performing the SSL/TLS handshake...[0m
[0;32mI (179519) mbedtls: ssl_tls.c:6306 => handshake
[0m
[0;32mI (179523) mbedtls: ssl_cli.c:3254 client state: 0
[0m
[0;32mI (179528) mbedtls: ssl_tls.c:2430 => flush output
[0m
[0;32mI (179534) mbedtls: ssl_tls.c:2442 <= flush output
[0m
[0;32mI (179540) mbedtls: ssl_cli.c:3254 client state: 1
[0m
[0;32mI (179545) mbedtls: ssl_tls.c:2430 => flush output
[0m
[0;32mI (179551) mbedtls: ssl_tls.c:2442 <= flush output
[0m
[0;32mI (179557) mbedtls: ssl_cli.c:719 => write client hello
[0m
[0;32mI (179574) mbedtls: ssl_tls.c:2715 => write record
[0m
[0;32mI (179585) mbedtls: ssl_tls.c:2430 => flush output
[0m
[0;32mI (179586) mbedtls: ssl_tls.c:2449 message length: 404, out_left: 404
[0m
[0;32mI (179590) mbedtls: ssl_tls.c:2455 ssl->f_send() returned 404 (-0xfffffe6c)
[0m
[0;32mI (179595) mbedtls: ssl_tls.c:2474 <= flush output
[0m
[0;32mI (179601) mbedtls: ssl_tls.c:2864 <= write record
[0m
[0;32mI (179606) mbedtls: ssl_cli.c:1051 <= write client hello
[0m
[0;32mI (179613) mbedtls: ssl_cli.c:3254 client state: 2
[0m
[0;32mI (179618) mbedtls: ssl_tls.c:2430 => flush output
[0m
[0;32mI (179624) mbedtls: ssl_tls.c:2442 <= flush output
[0m
[0;32mI (179630) mbedtls: ssl_cli.c:1403 => parse server hello
[0m
[0;32mI (179636) mbedtls: ssl_tls.c:3738 => read record
[0m
[0;32mI (179641) mbedtls: ssl_tls.c:2222 => fetch input
[0m
[0;32mI (179647) mbedtls: ssl_tls.c:2380 in_left: 0, nb_want: 5
[0m
[0;32mI (179654) mbedtls: ssl_tls.c:2404 in_left: 0, nb_want: 5
[0m
[0;32mI (179660) mbedtls: ssl_tls.c:2405 ssl->f_recv(_timeout)() returned -80 (-0x0050)
[0m
[0;33mW (179668) mbedtls: ssl_tls.c:3767 mbedtls_ssl_fetch_input() returned -80 (-0x0050)
[0m
[0;33mW (179676) mbedtls: ssl_cli.c:1409 mbedtls_ssl_read_record() returned -80 (-0x0050)
[0m
[0;32mI (179685) mbedtls: ssl_tls.c:6316 <= handshake
[0m
[0;31mE (179690) YH_HTTPS: mbedtls_ssl_handshake returned -0x50[0m
[0;31mE (179698) YH_HTTPS: Last error was: -0x50 - UNKNOWN ERROR CODE (0050)[0m
timer_task_test_count:read_si1144_times=1 
!!!Sensor_evt_task,read_si1144_times=1!!!
timer_task_test_count:read_si1144_times=1 
!!!Sensor_evt_task,read_si1144_times=1!!!

jerome
Posts: 37
Joined: Wed Jan 23, 2019 2:28 pm

Re: HTTPS,handshake error.

Postby jerome » Tue Sep 03, 2019 8:20 am

Hi
I'm facing a similar issue.
I was wondering if you found a solution to this ?
Thanks
Jerome

Who is online

Users browsing this forum: Google [Bot] and 293 guests