These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for letsencrypt fails - invalid response to acme challenge on the new forum.
Trying to set up for multiple subdomains, but I get this output; What to do ?
Failed authorization procedure. mail.domain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://mail.domain.com/.well-known/acme-challenge/xxx [ip]: 404, www.domain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.domain.com/.well-known/acme-challenge/xxx [ip]: 401, domain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://domain.com/.well-known/acme-challenge/xxx [ip]: 401, host.domain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://host.domain.com/.well-known/acme-challenge/xxx [ip]: 404
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: mail.domain.com
Type: unauthorized
Detail: Invalid response from http://mail.domain.com/.well-known
/acme-challenge/xxx
[ip]: 404
Domain: www.domain.com
Type: unauthorized
Detail: Invalid response from http://www.domain.com/.well-known
/acme-challenge/xxx
[ip]: 401
Domain: domain.com
Type: unauthorized
Detail: Invalid response from http://domain.com/.well-known/acme-
challenge/xxx
[ip]: 401
Domain: host.domain.com
Type: unauthorized
Detail: Invalid response from http://host.domain.com/.well-known
/acme-challenge/xxx
[ip]: 404
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.
Note: When I go to sub.domain.com I get a forbidden error. Not sure why? Where can I disable that (temporarily)
Well I removed the htaccess and that seems to have helped but now the result is 404 for the two subdomains (www subdomain works correctly). What might be the reason?
So subdomains other than www still do not work.
I even created a subserver but that doesn't seem to remove the 404 errors.. Still stuck.
You may have to go into your domain management and set A records for your subdomains/subservers (if you haven't yet) so that when users' type in the sub domain address in a web browser, it takes them to your server where the sub domain/server is hosted.
You domain management should be most likely with the company you registered your domain with. There you should find options in managing your domain, etc.
Those a records (or cname) exist. The 404 not found is on my server and in my server logs, so the request reaches my server.
You'r server is not allowing letsencrypt to write on your public_html Error 404 is generated when letsencrypt can't locate the challenge folder or the challenge file
Visit me at coderinthebox.com
We are having the same problem here:
We are running a python site on that account in
/home/customer/python-site
and we proxy bypass in Apache2 to
/home/customer/domains/domain.com/public_html
the folder .well-known get created correctly after pressing "request certificate" in Virtualmin / Server Configuration / Manage SSL Certificate / Let's encrypt (TAB)
--- The output is:
Requesting a certificate for domain.com, www.domain.com from Let's Encrypt ..
.. request failed :
Checking for new version...
Requesting root privileges to run certbot...
//.local/share/letsencrypt/bin/letsencrypt certonly -a webroot -d domain.com -d www.domain.com --webroot-path /home/customer/domains/domain.com/public_html --duplicate --config /tmp/.webmin/733029_809_1_letsencrypt.cgi
Failed authorization procedure. www.domain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.domain.com/.well-known/acme-challenge/_6ivUIGXxKM-A2m5H2xYLvT73DN0F3egULFf-3IhEtQ: "
<!DOCTYPE html>
<html lang="en-US" data-oe-company-name="Company Name">
<head>
<me", domain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://domain.com/.well-known/acme-challenge/8UQHT5gaMR9baApOBtAZeTtb5BiElfVN8MewrVal96g: "
<!DOCTYPE html>
<html lang="en-US" data-oe-company-name="Company Name">
<head>
<me"
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: www.domain.com
Type: unauthorized
Detail: Invalid response from http://www.domain.com/.well-
known/acme-challenge/_6ivUIGXxKM-A2m5H2xYLvT73DN0F3egULFf-3IhEtQ: "
<!DOCTYPE html>
<html lang="en-US" data-oe-company-name="Company Name">
<head>
<me"
Domain: domain.com
Type: unauthorized
Detail: Invalid response from http://domain.com/.well-known
/acme-challenge/8UQHT5gaMR9baApOBtAZeTtb5BiElfVN8MewrVal96g: "
<!DOCTYPE html>
<html lang="en-US" data-oe-company-name="Company Name">
<head>
<me"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.
The site has DNS A Records with the correct IP Adress as IPv4 and IPv6
Our Apache2 configuration looks like that:
Any help with this issue would appreciated!
Thanks Andi