This document describes the way to connect to MQTT broker with SSL method in Dusun gateway.
1. Log in the gateway with the IP obtained from the superior router, in my case it’s 192.168.0.78, the user name: root, password : root
![How to connect to MQTT broker with SSL method in Dusun gateway? 1 DM 20220701144306 008](https://www.dusuniot.com/wp-content/uploads/2022/07/DM_20220701144306_008.png)
2. Go to the LUCI page for mqtt configuration, type in the mqtt broker ip, port, user name, password and set the SSL option to ssl encrypt.
![How to connect to MQTT broker with SSL method in Dusun gateway? 2 DM 20220701144306 009](https://www.dusuniot.com/wp-content/uploads/2022/07/DM_20220701144306_009.png)
Then click save and apply, thus the gateway has been already connected to your desired mqtt broker.
3. In order to check the status, open the MQTT.fx program to subscribe from the same broker and the topic ‘t ’ where the gateway publish the data to.
![How to connect to MQTT broker with SSL method in Dusun gateway? 3 DM 20220701144306 010](https://www.dusuniot.com/wp-content/uploads/2022/07/DM_20220701144306_010.png)
![How to connect to MQTT broker with SSL method in Dusun gateway? 4 DM 20220701144306 011](https://www.dusuniot.com/wp-content/uploads/2022/07/DM_20220701144306_011.png)
It can be seen the broker has received the message from the gateway and the MQTT.fx client can subscribe it from the built topic