我试图通过TLS确保arduino pubsub客户端与mosquitto broker(运行在公共服务器上)之间的连接。确保arduino与TLS的蚊子连接
通常(在Windows等),我可以发布/订阅像bellow同时给予证书文件。 (证书和密钥文件在我的工作目录中)。
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客户端http://pubsubclient.knolleary.net/? – hardillb
你正在使用哪个硬件/ Arduino? Uno例如没有内存来运行完整的TLS。虽然它可能会被卸载到网络芯片上,如果使用像ESP8288这样的东西。 – njh
我正在使用Sam3x8e芯片。谢谢! :) – Dileep