If Certbot fails when using “sudo certbot renew”
And you get this….
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you’re using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
Try make the changes to your Apache configuration by hand, and run this command.
sudo certbot certonly --apache
This has work for us 99% of the time.