My Wiki!

**This is an old revision of the document!**

Mosquitto Broker

Haproxy

Letsencrypt

Paho client has compatility problems with ECDSA encryption. Use RSA:

https://community.letsencrypt.org/t/how-to-get-letsencrypt-working-with-the-mosquitto-mttq-broker/245861/5

I have multidomain certificates with three domains and so I must request an RSA certificate explicitly using “–key-type rsa” as follows:

 certbot certonly --key-type rsa --no-reuse-key -d domain1.tld -d domain2.tld -d domain3.tld --force-renewal

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

Navigation