cubatic's blog

Certbot

install

sudo apt install nginx certbot python3-certbot-nginx

certbot

certbot certonly --nginx

certbot renew

certbot renew --dry-run

crontab -e
0 2 1 */2 * /usr/bin/certbot renew --quiet --renew-hook "systemctl reload nginx"