letsencrypt certs via cloudflare tunnel
Find a file
2025-09-09 20:51:30 +05:30
getcert.sh Wrote for personal automation 2025-09-09 20:51:30 +05:30
README.md Wrote for personal automation 2025-09-09 20:51:30 +05:30

This script Written By Pardesi Cat (me)

basically for getting letsencrypt cert for your domains Which is Behind Cloudflare Tunnel....

Get Cloudflare APi

From my profile > Api tokens > Create Token

Now choose "Edit zone Dns" Template, select the same domain in "Zone Resources" area

Then generate & copy the api token.. and make sure "Certbot is installed"

Run the script

chmod +x getcert.sh
./getcert.sh

for renew cert same process & Dont forgot to delete the cloudflare Api token after usage [Recommend]

Note: Before use make sure you know what you doing & made it for my personal usage