if you followed my blog post on let's encrypt on uberspace to set up your account for let's encrypt certificates, please take time to update your scripts. as you can read in their wiki, uberspace recently updated their own scripts.
edit config file
open ~/.config/letsencrypt/cli.ini in nano
and remove the hashtag in the last line to uncomment and add renew-by-default = True
.
[]$ nano ~/.config/letsencrypt/cli.ini
it should look like this:
# To prevent being forced to agree manually to the terms
#agree-dev-preview = True
agree-tos = True
renew-by-default = True
update renew-script
run nano ~/bin/letsencrypt-renew-certs.sh
replace everything with this updated script:
#!/bin/bash
# get domains
( if [ -d $HOME/.config/letsencrypt/live ]; then find $HOME/.config/letsencrypt/live/ -mindepth 1 -maxdepth 1 -print0 ; fi )| while read -d $'\0' -r DIR ;
do
DOMAIN=${DIR#*".config/letsencrypt/live/"}
# renew certificates
/usr/local/bin/letsencrypt certonly -d $DOMAIN
# prepare certificates
uberspace-add-certificate -k $HOME/.config/letsencrypt/live/$DOMAIN/privkey.pem -c $HOME/.config/letsencrypt/live/$DOMAIN/cert.pem
done