# Mosquitto bridge connection to cloud

**URL:** <https://forum.cedalo.com/t/mosquitto-bridge-connection-to-cloud/1068>\
**Category:** Integrations\
**Created:** [November 25, 2024, 4:53am UTC](https://forum.cedalo.com/t/mosquitto-bridge-connection-to-cloud/1068 "2024-11-25T04:53:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunj](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@kunj](https://forum.cedalo.com/u/kunj)\
**Post date:** [November 25, 2024, 4:53am UTC](https://forum.cedalo.com/t/mosquitto-bridge-connection-to-cloud/1068/1 "2024-11-25T04:53:45Z")

</div>

Hello Everyone!

I am trying bridge connection from mosquitto MQTT explorer to EMQX cloud connection using 8883 port in windows machine. I am facing difficulty connecting to cloud. earlier I had tried to connect using 1883 port and it connected perfectly fine and I received data at EMQX cloud. In the case of 8883 port I tried to connect to cloud but it didn’t connect. I downloaded ca certificate from EMQX cloud and gave the path to access certificate in mosquitto.conf file but still it doesn’t work. I also created username and password and added to the mosquitto.conf file. which I had created in cloud authentication section. Can you check if anything is missing or needs to be changed?

Here’s the code that I used in mosquitto.conf file in bridge section.

# Bridge to EMQX Cloud

connection emqx\_cloud\_bridge  
address nae\*\*\*\*\*.ala.dedicated.aws.emqxcloud.com:8883

# Replace with the username and password provided by EMQX Cloud

username ku\*\*\*\*  
password ku\*\*\*\*

# Topics to bridge

topic # both 0

# Set bridge clean session

cleansession true

# Optional: Configure bridge keepalive (adjust as needed)

keepalive\_interval 60

# Optional: Enable start-type automatic connection

start\_type automatic

clientid mosquitto\_bridge\_8883

bridge\_cafile C:\Users\emqxcloud-ca.crt  
bridge\_insecure false # Validate the server certificate  
bridge\_tls\_version tlsv1.2 # Use TLS 1.2 for secure communication  
try\_private false # Avoid forwarding reserved topics  
notifications false # Skip $SYS topics

# Start the bridge automatically

start\_type automatic

---

<div class="post-metadata">

**Author:** ![Tizian](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.cedalo.com/tizian/32/33_2.png) [@Tizian](https://forum.cedalo.com/u/Tizian)\
**Post date:** [November 25, 2024, 9:18am UTC](https://forum.cedalo.com/t/mosquitto-bridge-connection-to-cloud/1068/2 "2024-11-25T09:18:11Z")

</div>

Hello,

My first idea would be that something related to the server certificate validation does not work as expected.

Can you set the log level to all and restart the broker? After this, look into the logs to see if there is further information about why the bridge is not connecting.

---

<div class="post-metadata">

**Author:** ![kunj](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@kunj](https://forum.cedalo.com/u/kunj)\
**Post date:** [November 29, 2024, 3:56am UTC](https://forum.cedalo.com/t/mosquitto-bridge-connection-to-cloud/1068/3 "2024-11-29T03:56:11Z")

</div>

hi,  
as per your advise i looked into the log file and found error related to bridge\_tls\_version tls1.2  
so i comment it and run mosquitto service again by restarting and the bridge got connected to cloud.

thank you for your suggestion.
