Skip to content

Instantly share code, notes, and snippets.

@edwardgalligan
Created December 7, 2022 00:03
Show Gist options
  • Save edwardgalligan/0e11555dc38720857919ee76dae1e783 to your computer and use it in GitHub Desktop.
Save edwardgalligan/0e11555dc38720857919ee76dae1e783 to your computer and use it in GitHub Desktop.
Zero-install certbot run (ovh-dns plugin)
#!/usr/bin/env bash
sudo podman run -it --rm --name certbot \
-v "/etc/letsencrypt:/etc/letsencrypt" \
-v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
-v ".:/tmp/secrets" \
docker.io/certbot/dns-ovh certonly \
--dns-ovh-credentials=/tmp/secrets/ovh-certbot.conf
# Use docker.io/certbot/dns-YOURHOSTINGPROVIDER
# Or docker.io/certbot/certbot for non-DNS
# Caveats:
# - only supports "certonly"
# - does not set a renewal cronjob automatically
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment