Certificate Problem


#1

Hi.
I’m trying to execute Mosquitto_sub function, as described in Getting Started.
However when I run the command, I get following feedback:
Client mosqsub/9182-raspberryp sending CONNECT
OpenSSL Error: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

I tried to copy .pem file from here, but it looks it’s not accepted. What I’m doing wrong?


#2

Some thoughts here:

Please use our newer MQTT servers on mqtt.gbridge.io. This wasn’t updated in the getting started guide until now.

Make sure the package ca-certificates is installed (sudo apt install ca-certificates).

What version of mosquitto_sub are you using (one of the first lines of mosquitto_sub --help)

Regards,