emqx / emqx-bridge-mqtt

Bridge of MQTT (deprecated since EMQX v5)
https://www.emqx.com
Apache License 2.0
37 stars 13 forks source link

Support bridge MQTT with TLS #137

Open duongxinh2003 opened 2 years ago

duongxinh2003 commented 2 years ago

Hi all, I want to bridge 2 brokers install on 2 devices through TLS. I will set up a bridge in device 1 and I change the setting in file emqx_bridge_mqtt.conf below:

bridge.mqtt.aws.address = <host>:8883
bridge.mqtt.aws.bridge_mode = true
bridge.mqtt.aws.ssl = on

After that, I comment on the certificate:

##bridge.mqtt.aws.cacertfile = <my_cacert_device1>.pem
##bridge.mqtt.aws.certfile = <my_client-cert_device1>.pem
##bridge.mqtt.aws.keyfile = <my_client-key_device1>.pem

Suprise, It runs normally without the certificates file above. I don't understand about setting up a bridge with TLS. Thanks!