Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
网络学习营
libcurl2rtt包使用mbedtls加密证书问题
发布于 2020-06-18 09:18:44 浏览:2335
订阅该版
因为DNS服务还有问题,所以这里直接用了ip地址访问:118.31.15.152->[www.rt-thread.com](www.rt-thread.com) 1.-k跳过证书正常. msh />curl --verbose -k --capath ./ [https://118.31.15.152/service/rt-thread.txt](https://118.31.15.152/service/rt-thread.txt) * timeout on name lookup is not supported * Trying 118.31.15.152:443... * TCP_NODELAY set * Connected to 118.31.15.152 () port 443 (#0) * mbedTLS: Connecting to 118.31.15.152:443 * mbedTLS: Set min SSL version to TLS 1.0 * mbedTLS: Handshake complete, cipher is TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384 * Dumping cert info: * cert. version : 3 * serial number : 09:2F:6D:AE:96:EC:D7:D0:24:55:D2:F5:64:20:50:23 * issuer name : C=US, O=DigiCert Inc, OU=www.digicert.com, CN=RapidSSL RSA CA 2018 * subject name : CN=*.rt-thread.org * issued on : 2020-06-05 00:00:00 * expires on : 2021-06-05 12:00:00 * signed using : RSA with SHA-256 * RSA key size : 2048 bits * basic constraints : CA=false * subject alt name : *.rt-thread.org, rt-thread.org * key usage : Digital Signature, Key Encipherment * ext key usage : TLS Web Server Authentication, TLS Web Client Authentication * SSL connected > GET /service/rt-thread.txt HTTP/1.1 > Host: 118.31.15.152 > User-Agent: curl/7.67.0-DEV > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 301 Moved Permanently < Server: nginx/1.10.3 (Ubuntu) < Date: Thu, 18 Jun 2020 01:11:34 GMT < Content-Type: text/html < Content-Length: 194 < Connection: keep-alive < Location: [https://club.rt-thread.org/service/rt-thread.txt](https://club.rt-thread.org/service/rt-thread.txt) < Strict-Transport-Security: max-age=1800; includeSubdomains; preload <
301 Moved Permanently
301 Moved Permanently
nginx/1.10.3 (Ubuntu)
* Connection #0 to host 118.31.15.152 left intact 2.我已经按照文档重新获取rt-thread的证书了,放到了/data目录下.可还是不行. msh />curl --verbose --capath ./data/ [https://118.31.15.152/service/rt-thread.txt](https://118.31.15.152/service/rt-thread.txt) * timeout on name lookup is not supported * Trying 118.31.15.152:443... * TCP_NODELAY set * Connected to 118.31.15.152 () port 443 (#0) * mbedTLS: Connecting to 118.31.15.152:443 * mbedTLS: Set min SSL version to TLS 1.0 * mbedTLS: Handshake complete, cipher is TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384 * Cert verify failed: BADCERT_CN_MISMATCH * Closing connection 0 curl: (60) Cert verify failed: BADCERT_CN_MISMATCH More details here: [https://curl.haxx.se/docs/sslcerts.html](https://curl.haxx.se/docs/sslcerts.html) curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.
查看更多
2
个回答
默认排序
按发布时间排序
aozima
2020-06-18
调网络不抓包,调I2C等时序不上逻辑分析仪,就像电工不用万用表!多用整理的好的文字,比截图更省流量,还能在整理过程中思考。
当https的server有多个域名的时候,需要SNI传输域名才行,所以你直接用IP访问,他就不知道你需要访问哪个域名了。 如果是http,有 host 就行,https还需要SNI。
芋圆源钰
2020-06-18
这家伙很懒,什么也没写!
>当https的server有多个域名的时候,需要SNI传输域名才行,所以你直接用IP访问,他就不知道你需要访问哪个域 ... --- 谢谢! 看来还是逃不过哦,我得先把DNS服务调通. 大神知道下面这个是什么情况吗? 移植的libcurl2rtt包,dns服务总是过不了,直接ping [www.rt-thread.com](www.rt-thread.com)都能通. msh />curl --verbose -k --capath ./ [https://www.rt-thread.com/service/rt-thread.txt](https://www.rt-thread.com/service/rt-thread.txt) * timeout on name lookup is not supported * Curl_ipv4_resolve_r failed for [www.rt-thread.com](www.rt-thread.com) * Couldn't resolve host 'www.rt-thread.com' * Closing connection 0 curl: (6) Couldn't resolve host 'www.rt-thread.com' msh />ping [www.rt-thread.com](www.rt-thread.com) 60 bytes from 118.31.15.152 icmp_seq=0 ttl=49 time=60 ms 60 bytes from 118.31.15.152 icmp_seq=1 ttl=49 time=30 ms 60 bytes from 118.31.15.152 icmp_seq=2 ttl=49 time=30 ms 60 bytes from 118.31.15.152 icmp_seq=3 ttl=49 time=30 ms
撰写答案
登录
注册新账号
关注者
0
被浏览
2.3k
关于作者
芋圆源钰
这家伙很懒,什么也没写!
提问
11
回答
12
被采纳
0
关注TA
发私信
相关问题
1
【LWIP学习营】第一关开发环境搭建
2
LWIP学习营第一周入门移植问题汇总贴
3
【LWIP学习营】f407+lan8720A小结
4
【LwIP学习营】【第一周】仅零散记录,无主题
5
【LWIP学习营】正点原子探索者F407+LAN8720第一周小结
6
【LwIP学习营】【第一周】网络通信基础及实现TCP 聊天客户端
7
【LwIP学习营】【第一周】LWIP移植
8
【LwIP学习营】【第一周】LWIP移植
9
【LwIP学习营】【第一周】开发板适配
10
【LwIP学习营】【第一周】环境搭建和配置验证
推荐文章
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
RT-Thread项目助手v0.3 | Ubuntu与MacOS平台的RT-Thread Env
2
【FRA156测评DM-MCX】- 环境配置篇
3
【基于HPM6750+RW007的网页服务器】---SD卡文件系统
4
有关RT_thread studio使用WDT的一点经验
5
ART-PI2 上手记录(一)
热门标签
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
ESP8266
UART
cubemx
WIZnet_W5500
ota在线升级
PWM
BSP
flash
freemodbus
packages_软件包
潘多拉开发板_Pandora
GD32
定时器
ADC
flashDB
编译报错
socket
中断
rt_mq_消息队列_msg_queue
Debug
keil_MDK
SFUD
msh
ulog
C++_cpp
MicroPython
本月问答贡献
lchnu
3
个答案
2
次被采纳
张世争
1
个答案
2
次被采纳
a1012112796
9
个答案
1
次被采纳
三世执戟
7
个答案
1
次被采纳
crystal266
4
个答案
1
次被采纳
本月文章贡献
jinchanchan
8
篇文章
13
次点赞
ssdd45555
3
篇文章
2
次点赞
聚散无由
1
篇文章
4
次点赞
rvcore
1
篇文章
1
次点赞
lvdongchina
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部