Skip to content

Instantly share code, notes, and snippets.

@sonuame
Created July 27, 2022 07:30
Show Gist options
  • Save sonuame/70271f2657a999aadf1094b49a244205 to your computer and use it in GitHub Desktop.
Save sonuame/70271f2657a999aadf1094b49a244205 to your computer and use it in GitHub Desktop.
Nginx DNS Challenge
sudo apt-add-repository ppa:certbot/certbot
sudo apt install certbot
wget https://github.com/joohoi/acme-dns-certbot-joohoi/raw/master/acme-dns-auth.py
chmod +x acme-dns-auth.py
nano acme-dns-auth.py
# change #!/usr/bin/env python to #!/usr/bin/env python3
sudo mv acme-dns-auth.py /etc/letsencrypt/
sudo certbot certonly --manual --manual-auth-hook /etc/letsencrypt/acme-dns-auth.py --preferred-challenges dns --debug-challenges \
-d *.your-domain \
-d your-domain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment