【发布时间】:2016-06-20 07:36:47
【问题描述】:
我正在尝试通过 TLS 保护 arduino pubsub 客户端和 mosquitto 代理(在公共服务器上运行)之间的连接。
通常(在 Windows 等上),我可以在提供证书文件时像下面这样发布/订阅。 (证书和密钥文件在我的工作目录中)。
mosquitto_pub -h myhost.com -p 8883 -t "/test" -m "your secure message" --cafile ca.crt --cert client.crt --key client.key
mosquitto_sub -h myhost.com -p 8883 -t "/test" --cafile ca.crt --cert client.crt --key client.key
但是有没有办法在 arduino 中做到这一点?
【问题讨论】:
-
mosquitto 客户端不在 arduino 上运行,您是指来自这里的 pubsub 客户端pubsubclient.knolleary.net?
-
您使用的是哪个硬件/Arduino?例如,Uno 没有运行完整 TLS 的内存。虽然它有可能被卸载到网络芯片上,如果使用像 ESP8288 这样的东西。
-
我使用的是 Sam3x8e 芯片。谢谢! :)
-
@hardillb 是的... :) :)
标签: ssl arduino client mqtt mosquitto