Top Poster
#1 ramon fincken 392
#2 Site admin 3
#3 Ber|Art 2
#4 braddmark 1
#5 accentmedia 1
#6 Xarzu 1
#7 pEcosespedex 1
#8 khadish 1
#9 moxxx 1
#10 nistelrock 1
letsencrypt CertStorageError: renewal config file {} is missing a required file reference



Rating : 3 / 5

 
Post new topic   Reply to topic    Ramonfincken.com Forum Index -> Bash, perl, python and CLI linux
Beta
Want to be notified by email when this topic gets a reply?  
View previous topic  
Author Message
ramon fincken
Site's programmer

Get a free globally recognized avatar
It's free!


Joined: 03 Aug 2007
Posts: 392
Location: A'dam/Diemen, The Netherlands

PostPosted: Tue Aug 07, 2018 8:13 am    Post subject: letsencrypt CertStorageError: renewal config file {} is missing a required file reference Reply with quote

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
View user's profile Send private message Visit poster's website
Google adsense
Advertisement





PostPosted: 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





PostPosted: Tue Aug 07, 2018 8:13 am    Post subject: letsencrypt CertStorageError: renewal config file {} is missing a required file reference

Advertisement
Gravity Forms Plugin for WordPress
Back to top
Post new topic   Reply to topic    Ramonfincken.com Forum Index -> Bash, perl, python and CLI linux All times are GMT
Page 1 of 1

 
Jump to:  
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
General forums
The world of freelance
Programming
Other projects
Poll
I love gifts

Yes goodies and presents! [3]
No but I love polls ! [1]

Related google ads