【问题标题】:AWS IoT Mosquitto Certificate ErrorAWS IoT Mosquitto 证书错误
【发布时间】:2018-06-23 02:52:20
【问题描述】:

我在尝试将 mosquitto 连接到 AWS IoT MQTT 系统时遇到了一个非常令人沮丧的错误。我按照本指南进行了设置: https://aws.amazon.com/blogs/iot/how-to-bridge-mosquitto-mqtt-broker-to-aws-iot/

起初似乎可行。当我订阅它时,我能够在他的 AWS IoT 控制台中看到消息。然后我重新启动了 mosquitto,我只是一遍又一遍地收到这个错误:

1529722121: OpenSSL Error: error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown
1529722121: Socket error on client local.bridgeawsiot, disconnecting.
1529722151: Bridge local.bridgeawsiot doing local SUBSCRIBE on topic localgateway_to_awsiot
1529722151: Bridge local.bridgeawsiot doing local SUBSCRIBE on topic both_directions
1529722151: Connecting bridge awsiot (a10cxxxxxxxxxx.iot.us-west-2.amazonaws.com:8883)
1529722182: Connecting bridge awsiot (a10cxxxxxxxxxx.iot.us-west-2.amazonaws.com:8883)

我已经多次验证我使用的证书是正确的,我还检查了 Thing 是否附加了策略并且证书已激活。我确保 rootCA.pem 文件是 Verisign 发布的文件。我不知道为什么经纪人不工作。主机操作系统是运行捆绑版 mosquitto 的 Ubuntu 18.04。任何帮助将不胜感激。

【问题讨论】:

    标签: amazon-web-services ssl mqtt mosquitto aws-iot


    【解决方案1】:

    我发现了问题所在。我使用 CLI 检索我的 IoT 端点,我的默认区域设置为 us-west-2。我创建的证书在 us-east-1 中。

    【讨论】:

      猜你喜欢
      • 2020-06-27
      • 1970-01-01
      • 2019-09-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多