Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
CA证书
mbedtls
100
mbedtls 使用证书错误请教
发布于 2025-07-19 15:53:25 浏览:116
订阅该版
测试rtt带的例程 ```c #define MBEDTLS_WEB_SERVER "www.rt-thread.org" #define MBEDTLS_WEB_PORT "443" #define MBEDTLS_READ_BUFFER 1024 static const char *REQUEST = "GET /download/rt-thread.txt HTTP/1.1\r\n" "Host: www.rt-thread.org\r\n" "User-Agent: rtthread/3.1 rtt\r\n" "\r\n"; #endif ``` 应答正常: ```c HTTP/1.1 200 OK Date: Sat, 19 Jul 2025 07:41:27 GMT Content-Type: text/plain; charset=utf-8 Content-Length: 267 Connection: keep-alive Vary: Accept-Encoding x-oss-request-id: 687B4C26DA7A37383109FDEC Accept-Ranges: bytes ETag: "749C784282FAA16C2000C57EDEC7E4AB" Last-Modified: Tue, 20 Oct 2020 03:55:17 GMT x-oss-object-type: Normal x-oss-hash-crc64ecma: 9455171224755408897 x-oss-storage-class: Standard x-oss-version-id: null Content-MD5: dJx4QoL6oWwgAMV+3sfkqw== x-oss-server-time: 81 Strict-Transport-Security: max-age=1800; includeSubdomains; preload Set-Cookie: sl-session=JJ5gG6edfGiUh3v6xgVBkA==; SameSite=None; Secure; Path=/; Max-Age=86400; HttpOnly Strict-Transport-Security: max-age=15768000; RT-Thread is an open source IoT operating system from China, which has strong scalability: from a tiny kernel running on a tiny core, for example ARM Cortex-M0, or Cortex-M3/4/7, to a rich feature system running on MIPS32, ARM Cortex-A8, ARM Cortex-A9 DualCore etc. ``` ``` [E/mbedtls.clnt] verify peer certificate fail.... [E/mbedtls.clnt] verification info: ! The certificate is not correctly signed by the trusted CA [E/web] connect failed, https client connect return: -0x1 ``` 测试webclientget程序 https://www.rt-thread.org/download/rt-thread.txt 程序应答正常  在测试 "https://www.rt-thread.com/service/rt-thread.txt" 提示证书失败  ``` [E/mbedtls.clnt] verify peer certificate fail.... [E/mbedtls.clnt] verification info: ! The certificate is not correctly signed by the trusted CA [E/web] connect failed, https client connect return: -0x1 ``` ```c [E/mbedtls.clnt] verify peer certificate fail.... [E/mbedtls.clnt] verification info: ! The certificate is not correctly signed by the trusted CA [E/web] connect failed, https client connect return: -0x1 ``` 证书配置  配置完成之后,又额外增加了网站证书 ``` const char mbedtls_root_certificate[] ``` https://www.rt-thread.com 网站证书  程序里面也确认已经增加了这个证书  后面再继续测试 https://www.howsmyssl.com/a/check 反馈的情况和刚刚一样证书失败....  问题是网站这个证书已经添加到const char mbedtls_root_certificate[] 里面  请教一下,这个错误还需要怎么设置才能解决?是对添加网站证书理解不对吗? ``` [E/mbedtls.clnt] verify peer certificate fail.... [E/mbedtls.clnt] verification info: ! The certificate is not correctly signed by the trusted CA [E/web] connect failed, https client connect return: -0x1 ``` 非常感谢坛友指导一下
查看更多
2
个回答
默认排序
按发布时间排序
YZRD
2025-07-22
这家伙很懒,什么也没写!
 menuconfig 配置增加数据帧大小:  实在不行,只能调试和抓包看了
踩姑娘的小蘑菇
2025-07-22
这家伙很懒,什么也没写!
把其他证书删掉,只留下.com的证书再试试
撰写答案
登录
注册新账号
关注者
0
被浏览
116
关于作者
weiyuliang
这家伙很懒,什么也没写!
提问
17
回答
83
被采纳
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
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
6
五分钟玩转RT-Thread新社区
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
【RSOC25】Day5 课程笔记:软件包相关知识
2
RT-Thread 夏令营 第五天笔记
3
【RSOC25】Day5 课程笔记:软件包和网络组件
4
【RSOC25】Day4 课程笔记:I/O设备和驱动框架
5
【RSOC25】Day3 课程笔记:线程间同步和通信
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
Bootloader
AT
Hardfault
CAN总线
ART-Pi
FinSH
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
FAL
RTC
rt-smart
cubemx
I2C_IIC
UART
WIZnet_W5500
BSP
ESP8266
PWM
ota在线升级
packages_软件包
flash
freemodbus
GD32
潘多拉开发板_Pandora
编译报错
ADC
keil_MDK
flashDB
rt_mq_消息队列_msg_queue
ulog
socket
MicroPython
msh
中断
Debug
SFUD
at_device
SDIO总线
本月问答贡献
Ryan_CW
1
个答案
2
次被采纳
D1sguIse_
6
个答案
1
次被采纳
用户名由3_15位
5
个答案
1
次被采纳
三世执戟
4
个答案
1
次被采纳
xiaorui
2
个答案
1
次被采纳
本月文章贡献
出出啊
1
篇文章
1
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
2
次点赞
crystal266
2
篇文章
1
次点赞
whj467467222
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部