Virtualmin GPL / CentOS 7.2.1511
One of my virtual servers attempted to automatically renew its Let's Encrypt SSL certificate. The error email notifications I received were:
An error occurred requesting a new certificate for example.com, www.example.com from Let's Encrypt : Expected certificate file /etc/letsencrypt/keys/cert.pem was not found
(I've checked and it's not there)
I received 6 of these emails every 5 minutes followed by a number (until I stopped the auto-renew) of the Let's Encrypt app emails with:
There were too many requests of a given type :: Error creating new cert :: Too many certificates already issued for exact set of domains:
These latter emails indicate to me that the maximum number of certs had been requested (in a 7 day period). I checked the LE error logs in /var/log/letsencrypt and at the end of these first 6 emails was:
2016-10-07 11:18:10,016:DEBUG:certbot.storage:Archive directory /etc/letsencrypt/archive/example.com-0009 and live directory /etc/letsencrypt/live/example.com-0009 created.
2016-10-07 11:18:10,016:DEBUG:certbot.storage:Writing certificate to /etc/letsencrypt/live/example.com-0009/cert.pem.
2016-10-07 11:18:10,016:DEBUG:certbot.storage:Writing private key to /etc/letsencrypt/live/example.com-0009/privkey.pem.
2016-10-07 11:18:10,016:DEBUG:certbot.storage:Writing chain to /etc/letsencrypt/live/example.com-0009/chain.pem.
2016-10-07 11:18:10,017:DEBUG:certbot.storage:Writing full chain to /etc/letsencrypt/live/example.com-0009/fullchain.pem.
2016-10-07 11:18:11,305:DEBUG:certbot.storage:Writing new config /etc/letsencrypt/renewal/example.com-0009.conf.
2016-10-07 11:18:11,306:DEBUG:certbot.reporter:Reporting to user: Congratulations! Your certificate and chain have been saved at /etc/letsencrypt/live/example.com-0009/fullchain.pem. Your cert will expire on 2017-01-05. To obtain a new or tweaked version of this certificate in the future, simply run letsencrypt-auto again. To non-interactively renew *all* of your certificates, run "letsencrypt-auto renew"
So it looks to me that 6 LE certs were requested and created but Virtualmin was not able to utilise them due to the '.../cert.pem' error
Can't see anything in your Issues Tracker, so it might be me. Any ideas what might be happening and what can I do to update my cert.
(I have tried manually requesting a cert for another virtual server and get the same '.../cert.pem' error. Strange as I've not had this problem before)