From af6630fba444eecc43629e3ca2cf1fb44e7c74eb Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Wed, 21 Jun 2023 14:47:18 +0000 Subject: [PATCH] enh: certbot auto-renew --- scripts/certbot-refresh.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/certbot-refresh.sh b/scripts/certbot-refresh.sh index d613421e..6fa1b5fd 100755 --- a/scripts/certbot-refresh.sh +++ b/scripts/certbot-refresh.sh @@ -1,3 +1,8 @@ #!/bin/bash -sudo certbot --server https://acme-v02.api.letsencrypt.org/directory -d *.pockethost.io -d pockethost.io --manual --preferred-challenges dns-01 certonly + +# https://www.digitalocean.com/community/tutorials/how-to-create-let-s-encrypt-wildcard-certificates-with-certbot +certbot renew --dns-digitalocean --dns-digitalocean-credentials ~/certbot-creds.ini +cp /etc/letsencrypt/live/pockethost.io/fullchain.pem ./ssl +cp /etc/letsencrypt/live/pockethost.io/privkey.pem ./ssl +chown pockethost:pockethost -R ./ssl \ No newline at end of file