ThingsBoard MQTT over TLS fails on port 8883
A server on Ubuntu in Amazon Lightsail works normally with the regular MQTT port 1883. When MQTT over TLS is enabled on port 8883, the service fails. The setup uses TLS 1.2, a PEM file, and a file path.
The error says “MQTT SSL : Invalid SSL ” and says that none of the PEM or keystore settings can be used. Turning those security settings off makes the service work again, but turning them on also brings the website down.
Key points
- works on regular MQTT port 1883.
- MQTT over TLS on port 8883 fails when the security settings are enabled.
- The setup points to a PEM file and a file.
- The error says the SSL is invalid.
- The website goes down when the failing security settings are turned on.