My domain is: wartorngalaxy.com, torngalaxy.com, www.wartorngalaxy.com
I ran this command: /usr/bin/certbot --reinstall certonly --email certificates@haravikk.com --agree-tos --rsa-key-size 4096 --text --non-interactive --webroot --webroot-path /home/user/com.wartorngalaxy/public_html --domain torngalaxy.com --domain wartorngalaxy.com --domain www.wartorngalaxy.com --deploy-hook 'echo "$RENEWED_LINEAGE" > /tmp/28945.9116.YctUgRUvagu18GO5/certs_dir'
It produced this output:
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for wartorngalaxy.com
http-01 challenge for www.wartorngalaxy.com
http-01 challenge for torngalaxy.com
Using the webroot path /home/dhc-user/com.wartorngalaxy/public_html for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. torngalaxy.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: During secondary validation: 2606:4700:3032::ac43:86ac: Invalid response from https://wartorngalaxy.com/.well-known/acme-challenge/nr0UD0YDEnYrX8EcfWCWoPf0gK2To7RoV1uKiKaKnQY: 403
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: torngalaxy.com
Type: unauthorized
Detail: During secondary validation: 2606:4700:3032::ac43:86ac:
Invalid response from
https://wartorngalaxy.com/.well-known/acme-challenge/nr0UD0YDEnYrX8EcfWCWoPf0gK2To7RoV1uKiKaKnQY:
403
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
My web server is: nginx version: nginx/1.14.0 (Ubuntu)
The operating system my web server runs on is: Ubuntu 18.04.6 LTS
My hosting provider is: Dreamhost
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: certbot 0.27.0
The above command is part of a script, which links the renewed certificate into position. This script has always worked well, I've been using it for years at this point, but suddenly it seems to be failing to get a renewed certificate for these domains as the HTTP-01 challenge(s) are failing.
I've verified that the path is accessible, if I throw a test files into .well-known/acme-challenge/test.html I can access it as expected, so somehow the ACME challenge thinks it's creating a file but is then unable to access it for some reason, which has never happened before.
I'm really at a loss as to why this is suddenly failing? Other domains haven't been affected so far, but none of them have needed to be renewed yet. Fortunately the affected domain is not one that's important (it's a placeholder that may or may not eventually be used) but I want to get this fixed before it breaks anything else.
Update: Just wanted to add, but the domains are all behind a Cloudflare reverse proxy, and always have been, so this has never been a problem before. But the fact that a specific IPv6 address is being given makes me wonder if that's part of the problem? I have no control over what IP address each domain appears as through Cloudflare, so they may well be different.