MQTT Connectivity
TLS Security
Encrypting device connections, trusting the certificate, and keeping credentials safe
Use TLS on port 8883 for every device in the field. TLS encrypts the connection, including the device's password, and proves to the device that it's talking to the real Sensorclouds broker.
Certificate details
| Item | Value |
|---|---|
| Issuer | Let's Encrypt |
| Root to trust | ISRG Root X1 |
| Hostnames covered | mqtt.sensorclouds.app (and the legacy mqtt.sensornodeiot.com) |
| Renewal | Automatic. You don't need to update devices when it renews |
| TLS versions | 1.2 and 1.3 |
Do I need to install a certificate?
| Device or client | What to do |
|---|---|
| Linux, macOS, Windows, Android | Nothing. ISRG Root X1 is already trusted |
Python (paho-mqtt), Node.js (mqtt) | Nothing, beyond turning TLS on |
| ESP32 / ESP8266, most microcontrollers | Embed ISRG Root X1 in your firmware (see Code Examples) |
| Cellular modules (SIMCom, Quectel…) | Upload ISRG Root X1 to the module and enable server verification |
Pin the root certificate (ISRG Root X1), not the server's own certificate. The server certificate changes every few months. The root lasts until 2035.
Security best practices
- Always use 8883 with TLS for deployed devices.
- One credential per device. Never reuse a token or password.
- Don't hard-code secrets in public repositories. Provision them at manufacturing time or from secure storage.
- Rotate credentials when devices change hands or are serviced.
- Keep certificate verification on. Disabling it (for example
setInsecure()on ESP32) removes the protection TLS gives you.