Skip to content

Instantly share code, notes, and snippets.

@Siedrix
Last active September 3, 2018 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Siedrix/21da1f4fd407cb71eb328b7b937cf917 to your computer and use it in GitHub Desktop.
Save Siedrix/21da1f4fd407cb71eb328b7b937cf917 to your computer and use it in GitHub Desktop.
Certbot wildcard subdomains
git clone https://github.com/certbot/certbot
cd certbot
git checkout v0.22.0
sudo ./certbot-auto --os-packages-only
./tools/venv.sh
source venv/bin/activate
certbot -d *.domain.com --manual --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory certonly

This works witn any DNS provided, a TXT record needs to be added as part of the process. If you use a dns provided to be done automaticaly.

@Siedrix
Copy link
Author

Siedrix commented Sep 3, 2018

new server is https://acme-v02.api.letsencrypt.org/directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment