Self Hosted:ZNC

From jrgnsn.net Wiki
Jump to navigation Jump to search

Auto-Deploy Let's Encrypt Certificates to ZNC

Add something like this to cron:

0 0 1 */1 * certbot renew --deploy-hook /home/<USERNAME>/.znc/scripts/deploy-certbot-post

deploy-certbot-post:

#!/bin/bash
cat /etc/letsencrypt/live/<DOMAIN_NAME>/{privkey,fullchain}.pem > /home/<USERNAME>/.znc/znc.pem