pockethost/scripts/certbot-refresh.sh
2023-06-21 14:47:18 +00:00

8 lines
366 B
Bash
Executable File

#!/bin/bash
# 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