Hello everyone.
I have some questions about MQTT and TLS.
When I switch my Cerbo-GX v3.53 to TLS, it brings up some problems and questions:
-
When I switch the MQTT Explorer to port 8883 and enable TLS, the encrypted communication already works without a password, username, and certificate. Where is the additional security here? Why is no certificate provided, and why are no username and password required?
-
When I try to include the encrypted Cerbo-GX in an MQTT Bridge, it does not work. I use an Eclipse Mosquitto MQTT Bridge and am very satisfied with it, but I cannot integrate the encrypted Cerbo-GX. The unencrypted Cerbo-GX works very well. Again, I am either missing a certificate or password and username.
The configuration for the bridge looks like this:
per_listener_settings true
allow_anonymous true
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
log_timestamp_format %Y-%m-%dT%H:%M:%S
log_dest stdout
log_type all
## MQTT Secure listener
listener 8883 0.0.0.0
require_certificate false
tls_version tlsv1.2
allow_anonymous true
# MQTT Default listener
listener 1883 0.0.0.0
allow_anonymous true
# MQTT over WebSockets
listener 9001 0.0.0.0
protocol websockets
allow_anonymous true
connection victron
address 192.168.133.71:1883
topic N/# in 0 victron/
connection victron-tls
address 192.168.133.71:8883
topic N/# in 0 victron-tls/
bridge_insecure true
tls_version tlsv1.2
connection openWB
address 192.168.133.79:1883
topic openWB/# both 0 openWB/
connection watermeter
address 192.168.133.90:1883
topic watermeter/# in 0 watermeter/
My error message:
2025-01-25T16:03:54: Connecting bridge victron-tls (192.168.133.71:8883)
2025-01-25T16:03:54: Bridge eclipse-mosquitto.victron-tls sending CONNECT
2025-01-25T16:03:54: Client local.eclipse-mosquitto.victron-tls closed its connection.
My interpretation: If the simple configuration without a certificate, password, and username works with the MQTT Explorer, shouldn’t it also work with the Mosquitto Bridge?
Does anyone have a working bridge configuration if the Cerbo-GX configuration is set to “secure”?