webroot-path should not include full path, so skip .well-known/acme-challenge
Tag Archives: certbot
snap certbot dns-cloudflare
apt update
apt install snapd
snap install core; snap refresh core
apt-get remove certbot
snap install --classic certbot
ln -s /snap/bin/certbot /usr/bin/certbot
snap set certbot trust-plugin-with-root=ok
snap install --beta certbot-dns-cloudflare
snap connect certbot:plugin certbot-dns-cloudflare
vim ~/.secrets/certbot/cloudflare.ini
dns_cloudflare_api_token = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
certbot certonly \
--dns-cloudflare \
--dns-cloudflare-credentials ~/.secrets/certbot/cloudflare.ini \
-d srv24x7.com \
-d *.srv24x7.com
certbot renew certificate
certbot renew --cert-name srv24x7.com
certbot renew --force-renewal --cert-name srv24x7.com
certbot cloudflare DNS authentication API
add-apt-repository ppa:certbot/certbot
apt install software-properties-common
apt update
apt install python-certbot-nginx
apt install python-pip
pip install certbot-dns-cloudflare
vi /root/.secrets/cloudflare.cfg
dns_cloudflare_api_key = “xxx”
certbot certonly –dns-cloudflare –dns-cloudflare-credentials /root/.secrets/cloudflare.ini -d domain.com,*.domain.com –preferred-challenges dns-01
An unexpected error occurred: pkg_resources.VersionConflict: (acme 0.31.0 (/usr/lib/python3/dist-packages), Requirement.parse(‘acme>=1.8.0’))
pip3 install --upgrade acme
certbot renew cron job
0 0 * * * certbot renew --post-hook "systemctl reload nginx"
certbot list installed certificates
certbot certificates