Skip to content

Instantly share code, notes, and snippets.

@sintret
Last active August 5, 2022 07:30
Show Gist options
  • Save sintret/8a78ad9d11c17229e051e2ebeb1b447a to your computer and use it in GitHub Desktop.
Save sintret/8a78ad9d11c17229e051e2ebeb1b447a to your computer and use it in GitHub Desktop.
wildcard SSL using Digital Ocean API
$ sudo apt install python3-certbot-dns-digitalocean
$ certbot plugins
$ nano ~/certbot-creds.ini
# DigitalOcean API credentials used by Certbot
dns_digitalocean_token = dop_v1_4b621067b53b50.... Your API TOken
$ chmod 600 ~/certbot-creds.ini
$ certbot certonly \
--dns-digitalocean \
--dns-digitalocean-credentials ~/certbot-creds.ini \
-d '*.domainexample.com'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment