Let's Encrypt Prosody Cert Hook
Let's Encrypt Prosody Cert Hook
Prosody + Let’s Encrypt certificates
As of right now Prosody is not able to update a live certificate while running. For the complete update it is necessary to restart Prosody, which is inconvenient.
With the telnet console
however, it is possible to reload the config such that a changed certificate is updated correctly. The biggest problem lies in reloading all possible locations the “old” certificate is still active in. I use the Prosody Telnet console to invoke a reload, due to the fact that prosodyctl reload is not actually reloading the modules just the config.
For this matter I hacked together a little bash script, which together with the Let’sEncrypt’s certbot
and the default letsencrypt cli is used to import and update the Prosody certificate without a need to restart the instance.