Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
mbedtls
求助 mbedtls 验证 CA 证书的问题
发布于 2021-01-14 12:09:17 浏览:2378
订阅该版
项目要用过HTTPS,用的STM32F411RE芯片,移植了官网的mbedtls-v2.7.10包,运行包里的tls_app_test例程时,报错 ``` [E/mbedtls.clnt] verify peer certificate fail.... [E/mbedtls.clnt] verification info: ! The certificate is not correctly signed by the trusted CA1. ``` 按步骤下的官网证书,没有优化TLS配置 附连接过程 ``` [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 www.rt-thread.org: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: 390, out_left: 390 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2599: ssl->f_send() returned 390 (-0xfffffe7a) [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: 70 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 5, nb_want: 70 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 65 (-0xffffffbf) [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: 21 [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: 2693 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 5, nb_want: 2693 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 1973 (-0xfffff84b) [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 1978, nb_want: 2693 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 715 (-0xfffffd35) [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_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: 338 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 5, nb_want: 338 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 333 (-0xfffffeb3) [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:2024: ECDH curve: secp256r1 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:2253: Server used SignatureAlgorithm 1 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:2254: Server used HashAlgorithm 6 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_cli.c:2612: <= 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: 75, out_left: 75 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2599: ssl->f_send() returned 75 (-0xffffffb5) [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_cli.c:3293: => parse new session ticket [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: 207 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2539: in_left: 5, nb_want: 207 [D/mbedtls.clnt] packages\mbedtls-v2.7.10\mbedtls\library\ssl_tls.c:2541: ssl->f_recv(_timeout)() returned 202 (-0xffffff36) [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:3384: <= parse new session ticket [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 is not correctly signed by the trusted CA ```
查看更多
1
个回答
默认排序
按发布时间排序
aozima
2021-01-14
调网络不抓包,调I2C等时序不上逻辑分析仪,就像电工不用万用表!多用整理的好的文字,比截图更省流量,还能在整理过程中思考。
## 建议 * `MBEDTLS_SSL_VERIFY_REQUIRED` 改为 `MBEDTLS_SSL_VERIFY_NONE` 禁用校验 * 把网站证书颁发机构的CA加进来。空间够的话,可以像浏览器那样全加进来。
撰写答案
登录
注册新账号
关注者
0
被浏览
2.4k
关于作者
ysjsskhn
这家伙很懒,什么也没写!
提问
1
回答
0
被采纳
0
关注TA
发私信
相关问题
1
libcurl2rtt编译失败
2
rt-thread + mbedTLS 连接阿里云ssl握手不成功
3
rt-thread+polarssl https连接阿里云握手失败?
4
mbedtls+ stm32f411 握手耗时15s
5
mbedtls 定义全局变量就会死机
6
MbedTLS软件包编译失败 unknown type name 'DIR'
7
mbedtls/config.h文件缺失
8
mbedtls_client_read data error 错误
9
socket使用SAL TLS没有反应
10
Server 层的TLS案例
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
机器人操作系统 (ROS2) 和 RT-Thread 通信
4
国产MCU移植系列教程汇总,欢迎查看!
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
【24嵌入式设计大赛】基于RT-Thread VisionBoard开发版的视觉循迹小车
2
【24嵌入式设计大赛】基于腾讯云及WOL的PC远程开机系统
3
图解 slab 内存分配算法
4
mcxn947 dht11温湿度采集
5
【24嵌入式设计大赛】基于RT-Thread星火1号的AI广告终端设计
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
ART-Pi
FinSH
USB
文件系统
DMA
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
ota在线升级
I2C_IIC
WIZnet_W5500
UART
flash
packages_软件包
cubemx
PWM
freemodbus
BSP
潘多拉开发板_Pandora
定时器
ADC
中断
flashDB
socket
Debug
GD32
编译报错
msh
keil_MDK
at_device
MicroPython
rt_mq_消息队列_msg_queue
ulog
C++_cpp
本月问答贡献
出出啊
1514
个答案
341
次被采纳
小小李sunny
1438
个答案
289
次被采纳
张世争
775
个答案
167
次被采纳
crystal266
546
个答案
161
次被采纳
whj467467222
1222
个答案
148
次被采纳
本月文章贡献
jaffer
1
篇文章
4
次点赞
rtt_dmx
1
篇文章
4
次点赞
不灬忘初心
1
篇文章
2
次点赞
BRICK PORTER
1
篇文章
1
次点赞
程序猿Charlie
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部