This worked six months ago and three months ago. Now I get the Type: unauthorized Detail: Invalid response from … error.
This is a bit irritating to me since it worked twice before. The setup remained unchanged during the past six months. I have no idea how to configure Apache to make this work again and I have no idea why it does not work for the third and more times.
Needless to say that DNS challenge is no option for me. I found a suggestion for NGINX but not for Apache.
In this case adding
<Location /.well-known/acme-challenge>
Require all granted
</Location>
does not work. My question is probably as frustrating as it is for me that it does no longer work.
Domain: example.de
Type: unauthorized
Detail: Invalid response from
http://example.de/.well-known/acme-challenge/fgnlpONUg8Z24HxNSf7R8O9h0HMEb2xDAd1drF3pH0Q:
"<!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"
This is not the error. The domain name is missing. Please read that (opening a new Topic in Help):
--
Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:
I ran this command:
It produced this output:
My web server is (include version):
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
If I want to disclose the domain I would already have done so. I had hoped that allowing to challenge an authenticated domain is a generic issue and not an edge case. Anyways I still have to check for the root.
Anyway, using your above conf should work without these changes.
Are you using your browser to test it?, because if you are using HTTP Strict Transport Security (HSTS) you won't get accurated results, instead use curl, put a file like 1234 in /var/www/htdocs/path/to/site/.well-known/acme-challenge/
If that doesn't work you should post your entire conf or maybe you could use an Alias directive pointing to another directory that doesn't need auth to access it.
I now not just edited 80 which worked perfect the past two challenges. I now moreover added all the stuff to 443 too with discouraging results.
This does not work either and gives the same unauthorized error as the original config I had in my VirtualHost. I will have another look. I just wonder what change during the past three months.
Yes I would like to check that and looks fine. Your domain has A (IPv4) and AAAA (IPv6) records?.
It should not but I will have to check. Anyways if it has both IP will point to the same server. Other challenges on this server work perfect. However the domain does not require authenification.
Cert is due for renewal, auto-renewing...
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Renewing an existing certificate
Performing the following challenges:
Well, trying to start a HTTPS connection will imperatively fail here. Access is only possible via a HTTP connection.
Even disabling port 443 for this subdomain does not change a thing. It tries to access HTTP via a HTTPS connection as it looks to me.