Skip to content

Certbot Notes

  • certbot certonly interactively add a certificates
  • certbot delete interactively delete certificates
  • certbot renew renew all certificates

Use Cloudflare DNS

apt install python3-certbot-dns-cloudflare
mkdir -p ~/.secrets/certbot/
nano ~/.secrets/certbot/cloudflare.ini
# dns_cloudflare_email = admin@pegasis.site
# dns_cloudflare_api_key = <api_key>
chmod 600 ~/.secrets/certbot/cloudflare.ini
certbot certonly --dns-cloudflare --dns-cloudflare-credentials ~/.secrets/certbot/cloudflare.ini
nginx -s reload

Last update: March 26, 2021
Created: March 26, 2021