Help with Mosquitto MQTT and MQTT integration

Hi guys, Can someone help me?

I’m using Chirpstack in a project at my university. I have the whole system working fine! My problem is with the MQTT Integration in the Application Server.

Using this guide I’ve managed to add the certificates for the MQTT integration and etc, but my question is:

What I have to do next? is there any kind of TLS for client and server that I have to change in Mosquitto Files or in the chirpstack-gateway-bridge.toml?

The topic “certs/mqtt” only shows that I have to add some lines in chirpstack-network-server.toml file and chirpstack-application-server.toml file, and I did it to receive the CAs in the integration, but I have the feeling that Im missing something important! Specially when the guide says:

" The generated client-certificate will contain the Gateway ID as CN. Most MQTT broker support using the CN for authorization to specific MQTT topics. E.g:
pattern readwrite gateway/%u/#

and:

“The generated client-certificate will contain the application ID as CN. Most MQTT broker support using the CN for authorization to specific MQTT topics. E.g:
pattern readwrite application/%u/#”

PS: By using “mosquitto_sub -t “application/#” -v” and “mosquitto_sub -t “gateway/#” -v” I can normally see the data (in the terminal and in the web-interface) received and sended by the gateway and device, respectively.
I think I’ve been on an encryption issue here?!

Any tips are welcome! Tks :slight_smile:

1 Like