I'm trying to get a LE certificate on my Synology NAS. But I always get the same error message : "Can't connect to Let's Encrypt, verify that your domain name is valid".
My domain is valid. I read in another post that I could try to join the API with curl :
Hi, the issue is that you are trying to connect to the API using http: curl -I http://acme-v02.api.letsencrypt.org : connection reset by peer curl -I https://acme-v02.api.letsencrypt.org : will be OK
1 <1 ms <1 ms <1 ms fritz.box [2003:e9:ef31:7200:f2b0:14ff:fe0e:fe2c]
2 5 ms 4 ms 4 ms 2003:0:8003:9800::1
3 * * 7 ms 2003:0:1005:c00c::2
4 7 ms 6 ms 7 ms cloudflare-ic323372-bei-b2.ip.twelve99-cust.net [2001:2000:3080:d55::2]
5 6 ms 6 ms 6 ms 2606:4700:60:0:f53d:5624:85c7:3a2c
I did the traceroute from my own machine, with a dynamic IP. How cloudflare could have firewalled that IP ?
I've just rebooted my modem, so I have a new IP. And the result of the traceroute is the same.
Interesting. Can you actually try the command I posted, of getting the /directory ? I don't think it would matter, but that's the endpoint that I'd expect your system to be actually hitting.
And just to be clear, you're running these curl commands from the same system that can't seem to connect using its built-in client?
The curl test is a red herring (i.e. it's not the same problem), your domain is not resolving back to your synology box or it is genuinely not a valid public name. If you can't share your domain here type it into https://letsdebug.net instead. In particular make sure that if you have both an IPv4 address and IPv6 address for your domain/subdomain make sure they both point to the same thing and that if you do point an IPv6 address to it that your modem will actually work with that (some equipment does not).
And you also need to be presenting your synology nas on port 80 for your public IP address (even if you then nat to a different port internally), if you want to do http validation. If you can't do that you need to use DNS validation instead as Let's Encrypts http validation happens (starts) on http port 80.