Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
网络学习营
libcurl2rtt包使用mbedtls加密证书问题
发布于 2020-06-18 09:18:44 浏览:2313
订阅该版
因为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-thred的stm32h723对应bsp包CubeMX添加其他外设报错
2
RT-Thread中的time溢出问题,时间戳溢出,解决方法
3
ART-PI使用env驱动ETH网卡,pc和板子可以ping通
4
SystemView线程名字不显示
5
只用网页也能跑RT-Smart 无门槛腾讯Cloud studio + smart-build快速构建
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
I2C_IIC
ESP8266
UART
cubemx
WIZnet_W5500
ota在线升级
PWM
BSP
flash
freemodbus
packages_软件包
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
编译报错
中断
Debug
rt_mq_消息队列_msg_queue
keil_MDK
ulog
SFUD
msh
C++_cpp
MicroPython
本月问答贡献
RTT_逍遥
8
个答案
2
次被采纳
三世执戟
7
个答案
1
次被采纳
KunYi
6
个答案
1
次被采纳
winfeng
2
个答案
1
次被采纳
chenyaxing
2
个答案
1
次被采纳
本月文章贡献
catcatbing
2
篇文章
5
次点赞
swet123
1
篇文章
3
次点赞
YZRD
1
篇文章
2
次点赞
Days
1
篇文章
2
次点赞
阳光的掌控者
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部