Hi, all. I'm a technician working on a number of sites hosted by a small outfit. I've been struggling with certbot for several hours. We have several domains across several servers, all using certbot. They have all been fine for the last 4 or 5 years. All servers are now running ubuntu 20.04 and all sites run on nginx. Some are php sites and some are ruby on rails.
I had a certificate expiry notice on my email client. This usually doesn't happen because there are cron jobs that update all certificates. The domain Burtman.net points at a website on [let's call it] server 1. Certificates on that server are fine. The domain mail.burtman.net is the mail domain running on server 2, and has expired, affecting mail for all domains.
The error message shows that the certificate is invalid because it is only for burtman.net, not mail.burtman.net. An error to the same effect shows for the web domains.
I can't renew or expand the certificates; certbot won't let me add mail. to the burtman.net cert because it isn't on the same server. Mail.burtman.net won't renew on the correct server either because there is no website associated with it (but it was fine for the last few years without a website associated).
Further, I have renewed the certificate for fusiondrivingtuition.co.uk and it shows 89 days validity on the server when I run certbot certificates. But in the browser, it no longer loads the website. It just downloads a small file (with a random name on the computer and downloadfile.bin on the phone).
I have tried renewing, expanding and removing and reinstalling the certificates. Nothing is working. My computer has been restarted and the cache and cookies have been cleared. I have restarted nginx and even the server (it was during a scheduled patching window but the patching was canceled because of this).
The domains are:
Burtman.net (one server 1)
Mail.burtman.net (on server 2)
Fusiondrivingtuition.co.uk (on server 2)
I don't understand the following:
-
Why this behavior is happening now, as nothing has been changed on either server in a long time.
-
Why the certificates are valid on the servers and show the correct domains but in firefox and mail apps, they show as being for burtman.net (and thus not valid for the actual domains).
I ran this command:
certbot certificates
It shows all the certificates. All valid and correctly assigned to their respective domains. No warnings, errors, exceptions or notices.
Web server: Nginx 1.18.0
Server OS: Ubuntu 20.04 - Kernel 5.4.0-173
Hosting provider: Digital ocean
I have root on all servers via ssh.
Certbot version: 0.40.0
I have inspected the .conf files in /etc/nginx/sites-available and compared them to those on other servers. I can't see anything wrong there.
Any help would be very much appreciated (it's 4am and I need to call it a day).