While revoking an old certificate, I accidentally said Yes to delete previous and current certs. Now, certbot certificates command says "No certificates..".
If I run certbot --apache, it says Action configtest failed.
How do I restore or create new LetsEncryp cert? THANK YOU!!
Yes, your Apache config is now referencing a file (for the certificate and its private key) that you deleted. Apache will no longer start
You will need to make a self-signed cert for your port 443 VirtualHosts to get it running again. Or, just remove the port 443 VHosts temporarily. Once you can start Apache to accept HTTP (port 80) requests you should be able to run certbot --apache again to get a new cert. Then re-apply any configuration from your existing port 443 VHost to the one just created by Certbot.
Revoking a cert is rarely needed and only if your system was compromised. If you explain what you were trying to accomplish we can instruct you on a better remedy. Often people think revoking a cert will fix some other problem but just makes things worse.
Yes, I did get a new cert today BEFORE I tried to revoke my previous cert because it had additional domains which I wanted to delete. During revoke, I stupidly said Yes to remove certs.
I have not yet restarted apache, so it seems to be using the already loaded cert. So I need to get past the error I posted about.
This is now making sense to me. Apache has to accepted HTTP requests on Port 80 for the certbot --apache command to do its magic. Let me look up how to remove 443 and enable port 80. THANK YOU!!
Maybe just by using the a2dissite command? That is a commonly used method on Ubuntu
The a2ensite (enable site) is the opposite but if Certbot makes a port 443 VHost you shouldn't just enable the old one. You will have duplicate VHosts for the same domain and port. Apache oddly allows starting up with that but it won't process requests properly.
You would manually update the new VHost with any needed parts from your old one.