Domain: alice.hatters.org.uk
Type: unauthorized
Detail: Invalid response from
http://alice.hatters.org.uk/.well-known/acme-challenge/A0Axf9ky4sCodxAlUoK5_gwYQWZElaB4MAm7qq5rwCQ:
"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML
2.0//EN\">\n<html><head>\n<title>404 Not
Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"
My web server is (include version): Apache2
The operating system my web server runs on is: Ubuntu 18.04
My hosting provider, if applicable, is: Jump Networks
I can login to a root shell on my machine: Yes
Iām using a control panel to manage my site: No
The version of my client is: 0.28.0
ā
While the domain given is alice.hatters.org.uk, that is the canonical name of the host machine. The web serverās name is www.hatters.org.uk. Iām not sure why the canonical name is getting involved in the certificate otherwise, nor why Iām getting this error now when renewals have been happening fine until now.
There is no LE version of the Apache 000-default.conf file though - is that an issue? All other web certificates on the machine are renewing fine.
Yes, these domains (hatters.org.uk and bluett.com) have different web roots. I have no idea why they got confused. hatters.org.uk has been auto-renewing OK until now. And there is a separate cert for bluett.com that seems to be working OK for that site (on its different webroot).
What can I do to fix the problem with hatters.org.uk? Iām a bit confused as to what ācertificateā means in this context and what is referring to what.
If I do certbot certificates -d www.hatters.org.uk I get:
There is no mention of bluett.com there though. That domain comes up as valid if I query it with the above command.
Should I run certbot delete -d alice.hatters.org.uk and then certbot certonly --cert-name www.hatters.org.uk -d www.hatters.org.uk,alice.hatters.org.uk to set it up again?
OK so from the Vhost config, I can see that the docroot is /home/hatters/html and the certificate files are in /etc/letsencrypt/live/alice.hatters.org.uk.* The docroot hasn't been changed for that server for years. In fact none of the Apache configs have.
Certbot doesn't mention anything to do with www.bluett.com, yet the cert in my browser for www.hatters.org.uk says its been issued to bluett.com. That site is also a site we host, and its certificate is fine (and as far as I know its Apache config hasn't changed).
I'm afraid I don't understand what to do. How can I get the certificate for www.hatters.org.uk to be for that site and not bluett.com?
Then the output should have shown that www.hatters.org.uk is not specifically included in any vhost and is therefor being served by the default vhost (or, the first vhost, if a default vhost is not defined).
But it is included in the vhost config and has been for a number of years. As far as I can tell, everything is set up OK. And indeed has been working fine ever since I set up LE on my server over two years ago... until now.
I don't have a *-le-ssl-conf version of 000-default.conf. But I don't know why that might mean Apache is serving port 443 requests for www.hatters.org.uk with the cert for bluett.com though. I assume bluett.com is the first vhost in that case - but why is this happening? And more importantly, I have no ideas about how to fix it.
Do you mean Apache isn't serving www.hatters.org.uk when a request is made for it on port 443 and is instead serving www.bluett.com with an expired certificate for www.hatters.org.uk? If so, why is that happening and what can I do about it? The DNS is correct, the vhost appears to be set up correctly, but I don't know where in the chain the request is going wrong.
OK I think the problem is in the inclusion statement.
Even thou you have a file (/home/conf/hatters/apache/www.hatters.org.uk-le-ssl.conf), it might not actually be used
Please show which file/folders are being included in the config: grep -i include /etc/apache2/*.conf