Hello Everyone,
I am just lost, I know that there are a number of threads on this subject, but I just cannot seem to get this resolved. I have multiple domains on this server, all of which successfully renew except for the 1 domain (my mail domain) that I created using -Webroot.
sudo certbot certonly --rsa-key-size 4096 --renew-by-default --webroot -w /var/www/html/mail.nietostack.com/ -d mail.nietostack.com --renew-by-default
Now, when I run sudo certbot renew --dry-run it fails with the below output:
Attempting to renew cert from /etc/letsencrypt/renewal/mail.nietostack.com.conf produced an unexpected error: Failed authorization procedure. mail.nietostack.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://mail.nietostack.com/.well-known/acme-challenge/JU54bI9HuOP7Porh_XXsmNEOGpIOBBR8zjz6t6Gm67A: "
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates below have not been saved.)The following certs were successfully renewed:
/etc/letsencrypt/live/www.mitchelnieto.com/fullchain.pem (success)
/etc/letsencrypt/live/nietostack.com/fullchain.pem (success)
/etc/letsencrypt/live/www.mitchelnieto.tech/fullchain.pem (success)
/etc/letsencrypt/live/nietofamily.com/fullchain.pem (success)The following certs could not be renewed:
/etc/letsencrypt/live/mail.nietostack.com/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)
1 renew failure(s), 0 parse failure(s)Domain: mail.nietostack.com
_ Type: unauthorized_
_ Detail: Invalid response from_
_ http://mail.nietostack.com/.well-known/acme-challenge/JU54bI9HuOP7Porh_XXsmNEOGpIOBBR8zjz6t6Gm67A:_
_ “_
_ _
_ 404 Not Found_
_ _
_Not Found
_
_ <p”__ 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._
I have modified the permissions of .well-known/acme-challenge and added a test file (mail.nietostack.com/.well-known/acme-challenge/OK), but each time I get:
Not Found
The requested URL /.well-known/acme-challenge/OK was not found on this server.
Apache/2.4.18 (Ubuntu) Server at mail.nietostack.com Port 80
From the other threads, it looks like this is an redirection (port 80 > 443) error that prevents -Webroot certificates from renewing? Any help is greatly appreciated.
Requested Information:
My domain is: mail.nietostack.comI ran this command: sudo certbot renew --dry-run
It produced this output:
IMPORTANT NOTES:
The following errors were reported by the server:
Domain: mail.nietostack.com
404 Not Found
Type: unauthorized
Detail: Invalid response from
http://mail.nietostack.com/.well-known/acme-challenge/JU54bI9HuOP7Porh_XXsmNEOGpIOBBR8zjz6t6Gm67A:
"Not Found
<p"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.My web server is (include version): Apache2.4.18
The operating system my web server runs on is (include version): Ubuntu 16.04
I can login to a root shell on my machine (yes or no, or I don’t know): yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): NO