Mosquitto Broker

Troubleshooting

Check what certificate Mosquitto is serving
openssl s_client -connect localhost:8883 -CApath /etc/ssl/certs 2>&1 | grep -E "issuer|subject|Verify|PKEY|sigalg"

Check how many certs are in a PEM file
openssl crl2pkcs7 -nocrl -certfile /etc/mosquitto/certs/fullchain.pem | openssl pkcs7 -print_certs -noout

Check cert details
openssl x509 -in /etc/mosquitto/certs/fullchain.pem -noout -issuer -subject -dates

Watch Mosquitto log
sudo tail -f /var/log/mosquitto/mosquitto.log