Https renewal on Prosody

After a certificate expiration, a new https certificate is usually built automatically. Prosody is still set to use the old certificate, because there's still a copy of the previous one in its config folder.

How to update the certificate on Replace the domain with yours. You can set a custom filename for the certificates in /etc/prosody/prosody.cfg.lua:

cp /etc/ssl/ /etc/prosody/certs/
cp /etc/ssl/private/ /etc/prosody/certs/

Then, restart prosody server. rcctl here works like systemctl:

rcctl stop prosody
rcctl start prosody

For the sake of automation, you could run these commands in a cron job after certificate renewal.