Skip to content

Instantly share code, notes, and snippets.

@willwillems
Created April 9, 2018 09:06
Show Gist options
  • Save willwillems/dee3d80297d6a7b3ff65800be652e014 to your computer and use it in GitHub Desktop.
Save willwillems/dee3d80297d6a7b3ff65800be652e014 to your computer and use it in GitHub Desktop.
Switch to wildcard SSL cert with certbot

If you want to switch from using a regulair certificate/certificates to using Let's Encrypt's new wildcard cert there are some things you still neeed to do, here is a simple command that should suffice:

sudo certbot certonly --cert-name YOURCERTNAME.com -d *.DOMAIN.com,DOMAIN.com --server https://acme-v02.api.letsencrypt.org/directory --manual --preferred-challenges=dns

Certbot will walk you trough the verfication using DNS which currently is the only option with wildcard support, you'll need to add two TXT record for verification.

Good luck!

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