I have some 50+ domains. And, I have some offsite storage. I usually use rsync to make backups and made an oops when making some backups as there are two forms of the command I generally use, one for internal backups on an internal network and one that does full encryption when going to an offsite storage area. ... And, yeah, I inadvertently sent the information in the clear to the offsite backup.
So, as the first time I had to revoke certificates, which I understand I'm obligated to do under the terms of service for receiving the certs in the first place, I followed the revoke procedure... Thankfully, it wasn't for all 50+ domains!
Anyway, I followed this advice.
However, when I went to issue new certificates, I've created a catch 22 problem which appears to be caused by the fact that I listened to the advice certbot gave and told it to delete all the existing cert files. -ugh!-
I BELIEVE THIS TO BE BAD ADVICE.
Why? It prohibits Apache from running (starting) and therefore certbot can't / won't authenticate, and the old files are now gone so you can't authenticate from the old private keys.
Creating all new certificates is a huge headache because certbot always trashes the apache configuration file. SURE, it works OK for the most basic configuration but do something out of the ordinary and it breaks and has to be fixed by hand.
I just cannot afford to spend hours fixing all the broken configurations of some 50+ domains.
So, AS THE ONLY WAY OUT without having my web sites all down for a long time, was to RESTORE THE BACKUP, thereby using the revoked keys again and this time issuing:
certbot certonly -d ...
This SEEMS to have worked, but I've only tried one domain and its subdomains...
But surely I am doing / have done it wrong?! Surely you wouldn't have given us all this terrible advice?
(Yes, I'm frustrated by this lost time and unnecessary downtime.)
So, how is someone SUPPOSED to do this?