-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: MQTT Does not support TLS Transport Encryption #2376
Comments
Nobody has managed to make it work. There is a comment in the firmware here Line 25 in 9d6e1ce
@sachaw found this potential approach as well https://github.com/knolleary/pubsubclient/pull/851/files |
I have a working Mosquitto MQTT server here with a valid purchased cert and such, validated with mosquitto_pub/sub to be all around valid TLS with authentication enabled. Running Mosquitto 2.0.15a on Ubuntu 20.04. That side all works. There's definitely the client certificate-based validation I see in the potential approach (lines 105-110 in that link). But maybe even to start simpler, we can support the user/pass authentication to not have to worry about uploading client id certificates to the devices. That should basically be just the extra TLS negotiation from the client-side. So I think we probably need a couple of things:
I'm happy to provide the encrypted MQTT server side and work with anyone who wants to tackle the firmware code. It's a dev box, so I can switch between unencrypted, and TLS valid or self-signed as needed. DM me on discord and we can coordinate connection details. |
This article has some example code: https://arduino.stackexchange.com/questions/72684/how-to-connect-to-mqtt-broker-with-tls May just need to add the secure client wrapper before the pubsubclient: // Then something like this if mqtt.tls_insecure is set: |
will be in next firmware for ESP32 |
Platform
ESP32
Description
Configuring an MQTT server such as mosquitto to use TLS with a valid certificate for transport security fails to connect. Looks like this isn't supported in the current implementation?
The text was updated successfully, but these errors were encountered: