ssl - AWS IoT Core 上生成的证书可以使用多长时间?
问题描述
我正在使用 esp8266 和 AWS IoT Core 处理我的项目,但是在运行程序时,它显示以下与串行监视器中的证书相关的错误......
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
WiFiClientSecure SSL error: Chain could not be linked to a trust anchor.
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
WiFiClientSecure SSL error: Chain could not be linked to a trust anchor.
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
WiFiClientSecure SSL error: Chain could not be linked to a trust anchor.
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
WiFiClientSecure SSL error: Chain could not be linked to a trust anchor.
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
WiFiClientSecure SSL error: Chain could not be linked to a trust anchor.
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
WiFiClientSecure SSL error: Chain could not be linked to a trust anchor.
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
WiFiClientSecure SSL error: Chain could not be linked to a trust anchor.
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
WiFiClientSecure SSL error: Chain could not be linked to a trust anchor.
有时它还显示证书由于某种原因已过期,我最终每 2 个月制作一个新证书。有人可以帮助解决这个问题吗?
证书的有效期有限制吗?
解决方案
推荐阅读
- angular - owl-carousel 不适用于带有 html 模板的 angular 中的 *ngfor 循环
- c# - C# MySQL 事务不适用于抛出异常的代码
- php - 在 cPanel 上使用 PHP 7.2 脚本创建电子邮件
- angular - 从另一个组件调用函数后,绑定在 Angular 中不起作用
- node.js - 如何正确在 MongoDB 中插入对象?
- linux - 部署后 Docker 容器未运行的问题
- python - 我可以将 Python 枚举编译成 numba jitclass 吗?
- python - 如何在 Django 中创建计划
- sql - 缩短重复的 SQL 查询
- java - javafx - 没有所有者的舞台上的最大化/最小化按钮