首页 > 解决方案 > 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 个月制作一个新证书。有人可以帮助解决这个问题吗?

证书的有效期有限制吗?

标签: ssliotesp8266client-certificatesaws-iot

解决方案


推荐阅读