Hi
README-letsencrypt.md references a non-existing renewal hook script in
`misc/letsencrypt/mosquitto-copy.sh`.
After some websearch I came up with something like this to deploy the
letsencrypt certificates readable by mosquitto (not fully tested, I'm
still waiting for the first real certificate renewal):
# cat /etc/letsencrypt/renewal-hooks/deploy/mosquitto-copy
#!/bin/sh
set -e
CERT_DIR="/etc/letsencrypt/live/mqtt.example.com"
DEST_DIR="/etc/mosquitto/certs"
install -o mosquitto -g mosquitto -m 0644 \
"$CERT_DIR/fullchain.pem" \
"$DEST_DIR/fullchain.pem"
install -o mosquitto -g mosquitto -m 0600 \
"$CERT_DIR/privkey.pem" \
"$DEST_DIR/privkey.pem"
systemctl reload mosquitto