尝试将蚊子桥接到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。任何帮助将不胜感激。
答案 0 :(得分:0)
我弄清楚了问题所在。我使用CLI检索我的IoT端点,并且我的默认区域设置为us-west-2。我创建的证书在us-east-1中。