When I try to renew the certificate using the following command sudo -H ./letsencrypt-auto certonly --webroot --renew-by-default -w /var/www/letsencrypt -d crystalbit.be -d www.crystalbit.be
I get this response:
- The following errors were reported by the server:
Domain: www.crystalbit.be
Type: unauthorized
Detail: Invalid response from
http://www.crystalbit.be/.well-known/acme-challenge/dfXk_w8OwpiO7Bne_osVYlE0Tmy7BgBiJ9Jimf9nPY0:
"<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>"
Domain: crystalbit.be
Type: unauthorized
Detail: Invalid response from
http://crystalbit.be/.well-known/acme-challenge/FUVQZLjsmBE5WHEMOJxBr4fel1EixB2H4P_OmFw6fkU:
"<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>"
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.
Yes, I get the same. But is 2600:3c01::f03c:91ff:fe69:5ca0 actually the correct IPv6 address for your server? I guess it isn’t because when I try to access your site via IPv6 I see an “Apache2 Ubuntu Default Page”, whereas you said you’re using nginx (and indeed if I access your site over IPv4 I see a “Welcome to nginx” page).
You need to find out the correct IPv6 address for your server and set the AAAA records to that. Or if you don’t have an IPv6 address, remove the AAAA records entirely.
So it might be that the DNS is correct, but the Nginx configuration need to be adjusted. Maybe some of the server blocks are missing IPv6 listen directives.