Skip to content

Instantly share code, notes, and snippets.

@ascorbic-acid
Last active November 19, 2020 17:51
Show Gist options
  • Save ascorbic-acid/decd942973f1d78a341529199582e413 to your computer and use it in GitHub Desktop.
Save ascorbic-acid/decd942973f1d78a341529199582e413 to your computer and use it in GitHub Desktop.
// the easy way to have any subdomain without the need to generate new cert or add dns record everytime is to create CNAME
for all subdomains using the * wildcard and then generate cert for all subdomain including the main domain with:
sudo certbot -d *.example.com --preferred-challenges=dns-01 --agree-tos certonly --manual
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment