|
|
View previous topic
::
View next topic
|
Author |
Message |
ramon fincken Site's programmer
 Get a free globally recognized avatar It's free!
Joined: 03 Aug 2007 Posts: 412 Location: A'dam/Diemen, The Netherlands
|
Posted: Tue Aug 07, 2018 8:13 am Post subject: letsencrypt CertStorageError: renewal config file {} is missing a required file reference |
|
|
Seeing Code: | WARNING:letsencrypt.cli:Renewal configuration file /etc/letsencrypt/renewal/*.conf is broken. Skipping. and
Additionally, the following renewal configuration files were invalid: /path/to/conf (parsefail) |
Use this and create a backup first of /etc/letsencrypt/renewal
Note that this does not work for subdomains. Only for www.domain.ext && domain.ext
Create /tmp/workingtemplate as template based on a working conf file in /etc/letsencrypt/renewal
example
Code: | # renew_before_expiry = 30 days
version = 0.26.1
archive_dir = /etc/letsencrypt/archive/THEDOMAIN
cert = /etc/letsencrypt/live/THEDOMAIN/cert.pem
privkey = /etc/letsencrypt/live/THEDOMAIN/privkey.pem
chain = /etc/letsencrypt/live/THEDOMAIN/chain.pem
fullchain = /etc/letsencrypt/live/THEDOMAIN/fullchain.pem
# Options used in the renewal process
[renewalparams]
account = YOURACCOUNTHERE
server = https://acme-v02.api.letsencrypt.org/directory
authenticator = webroot
rsa_key_size = 4096
webroot_path = /www/letsencrypt,
[[webroot_map]]
THENOWWWDOMAIN = /www/letsencrypt
THEDOMAIN = /www/letsencrypt |
now use this and kick off your renewal process
Note, this list is created using a grep on '0 Aug'. Make sure to adapt that using
Code: | cd /etc/letsencrypt/renewal && ls -lah |
Code: | workingtemplate=/tmp/workingtemplate
cd /etc/letsencrypt/renewal
mylist=`ls -lah | grep ' 0 Aug' | awk '{print $9}'`
IFS_BAK=$IFS
IFS='
'
count=0
for domainfile in $mylist
do
count=$((count+1))
domainshort=${domainfile/.conf/}
domainshortnowwww=${domainshort/www./}
echo $count $domainshort
cat $workingtemplate | sed -r s/THENOWWWDOMAIN/${domainshortnowwww}/g | sed -r s/THEDOMAIN/${domainshort}/g > ${domainfile}
done
IFS=$IFS_BAK |
|
|
Back to top |
|
 |
Google adsense Advertisement
|
Posted: Tue Aug 07, 2018 8:13 am Post subject: letsencrypt CertStorageError: renewal config file {} is missing a required file reference |
|
|
Advertisement
|
|
Back to top |
|
 |
GravityForms Advertisement
|
Posted: Tue Aug 07, 2018 8:13 am Post subject: letsencrypt CertStorageError: renewal config file {} is missing a required file reference |
|
|
Advertisement
 |
|
Back to top |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|