Hello,
I’m trying to get my certificates renewed automatically. Where should I start ?
I created a conf file in /etc/letsencrypt/renewal/serv1.mydomain.conf
cert = /etc/letsencrypt/live/serv1.mydomain.org/serv1.mydomain.org_pp.crt
privkey = /etc/letsencrypt/live/serv1.mydomain.org/serv1.mydomain.org.key
fullchain = /etc/letsencrypt/live/serv1.mydomain.org/serv1.mydomain.org_chaine_pp.crt
chain = /etc/letsencrypt/live/serv1.mydomain.org/CA_Staging_Intermediaire_Lets_Encrypt.crt
[renewalparams]
authenticator = webroot
installer = None
account = 04048eeb4f5e5e72210c505f9b16f44b
server = https://acme-staging.api.letsencrypt.org/directory
email = admin@mydomain.org
webroot_path = /var/www/htdocs
[[webroot_map]]
serv1.mydomain.org = /var/www/htdocs
All four files are symbolic links.
I ran certbot -q renew but I get an error
2017-08-14 15:58:40,154:DEBUG:certbot.main:Root logging level set at 30
2017-08-14 15:58:40,156:INFO:certbot.main:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2017-08-14 15:58:40,157:DEBUG:certbot.main:certbot version: 0.12.0
2017-08-14 15:58:40,157:DEBUG:certbot.main:Arguments: ['-q']
2017-08-14 15:58:40,159:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#webroot,PluginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalone)
2017-08-14 15:58:40,166:DEBUG:certbot.storage:No matches for target cert.
2017-08-14 15:58:40,166:DEBUG:certbot.storage:No matches for target privkey.
2017-08-14 15:58:40,166:DEBUG:certbot.storage:No matches for target chain.
2017-08-14 15:58:40,167:DEBUG:certbot.storage:No matches for target fullchain.
2017-08-14 15:58:40,167:WARNING:certbot.renewal:Attempting to renew cert from /etc/letsencrypt/renewal/serv1.mydomain.org.conf produced an unexpected error: max() arg is an empty sequence. Skipping.
2017-08-14 15:58:40,168:DEBUG:certbot.renewal:Traceback was:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/certbot/renewal.py", line 409, in handle_renewal_request
renewal_candidate.ensure_deployed()
File "/usr/local/lib/python2.7/site-packages/certbot/storage.py", line 726, in ensure_deployed
if self.has_pending_deployment():
File "/usr/local/lib/python2.7/site-packages/certbot/storage.py", line 746, in has_pending_deployment
return smallest_current < self.latest_common_version()
File "/usr/local/lib/python2.7/site-packages/certbot/storage.py", line 702, in latest_common_version
return max(n for n in versions[0] if all(n in v for v in versions[1:]))
ValueError: max() arg is an empty sequence
2017-08-14 15:58:40,169:DEBUG:certbot.main:Exiting abnormally:
Traceback (most recent call last):
File "/usr/local/bin/certbot", line 11, in <module>
load_entry_point('certbot==0.12.0', 'console_scripts', 'certbot')()
File "/usr/local/lib/python2.7/site-packages/certbot/main.py", line 896, in main
return config.func(config, plugins)
File "/usr/local/lib/python2.7/site-packages/certbot/main.py", line 702, in renew
renewal.handle_renewal_request(config)
File "/usr/local/lib/python2.7/site-packages/certbot/renewal.py", line 435, in handle_renewal_request
len(renew_failures), len(parse_failures)))
Error: 1 renew failure(s), 0 parse failure(s)
I read many things and did a lot of tests but I’m lost and I would like to know what should I do first.
Thanks