mosquitto – MQTT Errors self signed certificate?

I am using the mosquitto.conf file to connect to MQTTX. The CA certificate (ca.cert) has already been provided, so I don’t need to create one, and it has been successfully included in the mosquitto.conf file. Additionally, I generated a self-signed server certificate (server.crt) and a server key (server.key), ensuring that the Common Name (CN) matches the IP address used for MQTTX. However, after adding the server key and certificate to the mosquitto.conf file and configuring them in MQTTX, I am receiving an “Error: self-signed certificate.”

How can I resolve this issue?

I have provided the image from mosquitto.log

  • I added the server key and crt to mosquitto.conf
  • server.crt cn as ip that is used for mqttx
  • They already provided with ca.crt
  • “Error: self-signed certificate.” i need to fix this error

enter image description here

enter image description here

Read more here: Source link