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

Leave a Reply

Your email address will not be published. Required fields are marked *