Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
mbedtls
5
https下载文件失败
发布于 2022-08-25 16:21:24 浏览:964
订阅该版
使用https下载文件,浏览器可以正常下载。但是设备端(stm32f411)无法下载,报错显示mbedtls_client_read data error, return -0x7200 但已经将配置改为下列所示: ```c #define PKG_USING_MBEDTLS_DEBUG #define MBEDTLS_AES_ROM_TABLES #define MBEDTLS_ECP_WINDOW_SIZE 2 #define MBEDTLS_SSL_MAX_CONTENT_LEN 8192 #define MBEDTLS_MPI_MAX_SIZE 1024 #define MBEDTLS_CTR_DRBG_KEYSIZE 32 #define PKG_USING_MBEDTLS_V2710 ``` 调试日志如下 ```c [D/mbedtls.clnt] Set debug level (2) [D/mbedtls.clnt] mbedtls client struct init success... [D/mbedtls.clnt] Loading the CA root certificate success... [D/mbedtls.clnt] mbedtls client context init success... [D/mbedtls.clnt] Connected t-cloud.ikeenon.com:443 success... [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:6850: => handshake [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3400: client state: 0 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2586: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3400: client state: 1 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2586: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:0777: => write client hello [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2867: => write record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2592: message length: 66, out_left: 66 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2599: ssl->f_send() returned 66 (-0xffffffbe) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2626: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3025: <= write record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:1100: <= write client hello [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3400: client state: 2 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2586: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:1493: => parse server hello [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3904: => read record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2358: => fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2515: in_left: 0, nb_want: 5 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 0, nb_want: 5 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 5 (-0xfffffffb) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2561: <= fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2358: => fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2515: in_left: 5, nb_want: 86 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 5, nb_want: 86 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 81 (-0xffffffaf) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2561: <= fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3937: <= read record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:1775: server hello, total extension length: 5 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:1964: <= parse server hello [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3400: client state: 3 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2586: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:4513: => parse certificate [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3904: => read record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2358: => fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2515: in_left: 0, nb_want: 5 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 0, nb_want: 5 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 5 (-0xfffffffb) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2561: <= fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2358: => fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2515: in_left: 5, nb_want: 2773 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 5, nb_want: 2773 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 1957 (-0xfffff85b) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 1962, nb_want: 2773 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 811 (-0xfffffcd5) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2561: <= fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3937: <= read record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:4786: x509_verify_cert() returned -9984 (-0x2700) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:4883: <= parse certificate [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3400: client state: 4 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2586: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:2311: => parse server key exchange [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:2316: <= skip parse server key exchange [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3400: client state: 5 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2586: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:2645: => parse certificate request [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3904: => read record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2358: => fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2515: in_left: 0, nb_want: 5 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 0, nb_want: 5 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 5 (-0xfffffffb) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2561: <= fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2358: => fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2515: in_left: 5, nb_want: 9 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 5, nb_want: 9 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 4 (-0xfffffffc) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2561: <= fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3937: <= read record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:2794: <= parse certificate request [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3400: client state: 6 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2586: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:2804: => parse server hello done [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3904: => read record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3933: <= reuse previously read message [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3937: <= read record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:2834: <= parse server hello done [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3400: client state: 7 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2586: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:4396: => write certificate [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:4413: <= skip write certificate [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3400: client state: 8 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2586: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:2846: => write client key exchange [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2867: => write record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2592: message length: 267, out_left: 267 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2599: ssl->f_send() returned 267 (-0xfffffef5) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2626: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3025: <= write record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3088: <= write client key exchange [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3400: client state: 9 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2586: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3139: => write certificate verify [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:0513: => derive keys [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:0985: <= derive keys [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3160: <= skip write certificate verify [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3400: client state: 10 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2586: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:4899: => write change cipher spec [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2867: => write record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2592: message length: 6, out_left: 6 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2599: ssl->f_send() returned 6 (-0xfffffffa) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2626: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3025: <= write record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:4913: <= write change cipher spec [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3400: client state: 11 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2586: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:5432: => write finished [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:5257: => calc finished tls sha256 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:5287: <= calc finished [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2867: => write record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:1313: => encrypt buf [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:1635: <= encrypt buf [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2592: message length: 45, out_left: 45 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2599: ssl->f_send() returned 45 (-0xffffffd3) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2626: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3025: <= write record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:5541: <= write finished [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3400: client state: 12 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2586: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:4922: => parse change cipher spec [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3904: => read record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2358: => fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2515: in_left: 0, nb_want: 5 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 0, nb_want: 5 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 5 (-0xfffffffb) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2561: <= fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2358: => fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2515: in_left: 5, nb_want: 6 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 5, nb_want: 6 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 1 (-0xffffffff) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2561: <= fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3937: <= read record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:5000: <= parse change cipher spec [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3400: client state: 13 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2586: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:5558: => parse finished [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:5257: => calc finished tls sha256 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:5287: <= calc finished [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3904: => read record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2358: => fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2515: in_left: 0, nb_want: 5 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 0, nb_want: 5 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 5 (-0xfffffffb) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2561: <= fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2358: => fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2515: in_left: 5, nb_want: 45 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 5, nb_want: 45 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 40 (-0xffffffd8) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2561: <= fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:1649: => decrypt buf [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2198: <= decrypt buf [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3937: <= read record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:5626: <= parse finished [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3400: client state: 14 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2586: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3511: handshake: done [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:3400: client state: 15 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2586: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:6860: <= handshake [E/mbedtls.clnt] verify peer certificate fail.... [E/mbedtls.clnt] verification info: ! The certificate Common Name (CN) does not match with the expected CN ! The certificate is not correctly signed by the trusted CA [D/mbedtls.clnt] Certificate verified success... [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:7422: => write [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2867: => write record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:1313: => encrypt buf [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:1635: <= encrypt buf [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2592: message length: 148, out_left: 148 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2599: ssl->f_send() returned 148 (-0xffffff6c) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2626: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3025: <= write record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:7450: <= write [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:7036: => read [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3904: => read record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2358: => fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2515: in_left: 0, nb_want: 5 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 0, nb_want: 5 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 5 (-0xfffffffb) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2561: <= fetch input [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3701: bad message length [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3912: mbedtls_ssl_read_record_layer() returned -29184 (-0x7200) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:7100: mbedtls_ssl_read_record() returned -29184 (-0x7200) [E/mbedtls.clnt] mbedtls_client_read data error, return -0x7200 [E/web.file] get file failed, wrong response: -29184 (-0xFFFF8E00). [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:7465: => write close notify [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:4317: => send alert message [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2867: => write record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:1313: => encrypt buf [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:1635: <= encrypt buf [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2574: => flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2592: message length: 31, out_left: 31 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2599: ssl->f_send() returned 31 (-0xffffffe1) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2626: <= flush output [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:3025: <= write record [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:4330: <= send alert message [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:7481: <= write close notify ```
查看更多
3
个回答
默认排序
按发布时间排序
aozima
2022-08-25
调网络不抓包,调I2C等时序不上逻辑分析仪,就像电工不用万用表!多用整理的好的文字,比截图更省流量,还能在整理过程中思考。
>0x7200错误是一个常见错误,是因为空间不足导致的。 参考: - [mbedtls_client_read data error 错误](https://club.rt-thread.org/ask/question/cfe75b769779c3a8.html)
xusiwei1236
2022-08-26
https://blog.csdn.net/xusiwei1236
自己服务器https证书正常吗?curl直接下载报错吗?
忧伤还是快乐
2022-09-01
这家伙什么也没写,不是懒
最终通过服务器限速临时解决
撰写答案
登录
注册新账号
关注者
0
被浏览
964
关于作者
忧伤还是快乐
这家伙什么也没写,不是懒
提问
17
回答
7
被采纳
0
关注TA
发私信
相关问题
1
libcurl2rtt编译失败
2
rt-thread + mbedTLS 连接阿里云ssl握手不成功
3
rt-thread+polarssl https连接阿里云握手失败?
4
mbedtls+ stm32f411 握手耗时15s
5
mbedtls 定义全局变量就会死机
6
求助 mbedtls 验证 CA 证书的问题
7
MbedTLS软件包编译失败 unknown type name 'DIR'
8
mbedtls/config.h文件缺失
9
mbedtls_client_read data error 错误
10
socket使用SAL TLS没有反应
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
Studio环境下ST M7系列USB主机(CherryUSB)配置及踩坑
2
RTT串口查找函数使用过程中遇到的问题。
3
RT-Thread CI编译产物artifacts自动上传功能介绍
4
STM32G030移植RT-Thread
5
CubeMX & RT-Thread Studio 联合开发说明
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
rt-smart
RTC
FAL
I2C_IIC
cubemx
ESP8266
UART
WIZnet_W5500
ota在线升级
PWM
BSP
flash
freemodbus
packages_软件包
潘多拉开发板_Pandora
GD32
定时器
ADC
flashDB
编译报错
socket
中断
rt_mq_消息队列_msg_queue
keil_MDK
Debug
SFUD
ulog
msh
C++_cpp
MicroPython
本月问答贡献
出出啊
1522
个答案
343
次被采纳
小小李sunny
1444
个答案
290
次被采纳
张世争
815
个答案
179
次被采纳
crystal266
555
个答案
162
次被采纳
whj467467222
1222
个答案
149
次被采纳
本月文章贡献
出出啊
1
篇文章
2
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
3
次点赞
crystal266
2
篇文章
1
次点赞
whj467467222
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部