Created
December 7, 2022 00:03
-
-
Save edwardgalligan/0e11555dc38720857919ee76dae1e783 to your computer and use it in GitHub Desktop.
Zero-install certbot run (ovh-dns plugin)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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