Skip to content

Instantly share code, notes, and snippets.

View pogossian's full-sized avatar

Gor Poghosyan pogossian

View GitHub Profile
@fideloper
fideloper / certbot.sh
Last active February 19, 2025 20:30
Certbot on Ubuntu, wildcard subdomains via CloudFlare DNS challenge
# Used on Ubuntu 18.04 and 20.04
# Find instructions for other OSes here: https://certbot.eff.org/instructions
# Install Certbot via Snaps
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
# Install DNS CloudFlare plugin
sudo snap set certbot trust-plugin-with-root=ok