mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
enh: certbot auto-renew
This commit is contained in:
parent
6ba99f8f82
commit
af6630fba4
@ -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
|
Loading…
x
Reference in New Issue
Block a user