Hi,
I have a mosquitto broker running fine for years on an opensuse server, including TLS.
I recently upgraded from opensuse leap 15.2 to 15.3.
Now I noticed the broker has stopped working and the reason is the TLS configuration.
If I remove it, all works fine again.
The configuration did not change during the update, only the broker version.
This is the error message I get:
Error: Unable to load server key file "/etc/letsencrypt/live/banzhaf.chickenkiller.com/privkey.pem". Check keyfile.
Obviously I checked the key file:
- The user running the broker can read it
- start the command as root also fails
- using the key file and cert to communicate with openssl s_client and s_server commands shows the cert and key is valid
This is the opensuse rpm version:
mosquitto-2.0.10-bp153.1.1.x86_64
Is there a known bug in this version?
Here is the tls config, nothing fancy:
listener 8883
cafile /etc/mosquitto/ca_certificates/ca.crt
certfile /etc/letsencrypt/live/banzhaf.chickenkiller.com/fullchain.pem
keyfile /etc/letsencrypt/live/banzhaf.chickenkiller.com/privkey.pem
require_certificate true
use_identity_as_username true
use_username_as_clientid true
The start command is simply
/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
Which contains just this line:
include_dir /etc/mosquitto/conf.d
which contains the above tls config
Any idea how to get this going again?