steevehook
5/22/2018 - 1:09 PM

Certbot

Certbot generation and renewal process

Generate: docker run -it --rm -p 80:80 -p 443:443 -v /etc/letsencrypt:/etc/letsencrypt certbot/certbot certonly --agree-tos --standalone --email email@example.com -d example.com -d www.example.com -d docs.example.com

Renew: docker run -it --rm -v /etc/letsencrypt:/etc/letsencrypt certbot/certbot renew --dry-run

Renew in cronjob:

  1. crontab -e
  2. 0 0 */15 * * docker run -it --rm -v /etc/letsencrypt:/etc/letsencrypt certbot/certbot renew --dry-run