root@Uruz:~# sudo certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: uruz.gg
2: launcher.uruzmu.com
3: test.uruzmu.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Requesting a certificate for uruz.gg
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: uruz.gg
Type: connection
Detail: 45.235.99.69: Fetching http://uruz.gg/.well-known/acme-challenge/V5wnKvDb0H30_7eYauv-WzzcMtio98ZWEe1LrDaBczE: Connection reset by peer
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
My web server is (include version): Apache2
The operating system my web server runs on is (include version): Ubuntu 20.04
My hosting provider, if applicable, is:
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
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): 2.7.4
I try to access the URLs mentioned in the log and it does not exist. There is also nothing of the type .well-known in the files. Could this be a mistake?
If I try accessing programmatically I get the connection dropped, if I use a "human" browser I get some kind of challenge before actually seeing any content. That needs to go.
You need at the very least to whitelist that directory. It's a very big oversight for this software not to do so by default.
Certbot will create one as needed and remove it after.
I was expecting to see a 404 Not Found response which is fine. But the "reset by peer" response is wrong and is preventing Let's Encrypt from validating your domain name. I don't have any good suggestions. We have seen similar patterns before but never got a good answer how to fix.
Who is your ISP or hosting service? You may need to ask them why requests are being denied by "reset by peer". This even happens if I use curl for your "home" page so it is not unique to the ACME challenge
# Just now this fails
curl -i http://uruz.gg
curl: (56) Recv failure: Connection reset by peer
# Tried immediately after and it got through
curl -i http://uruz.gg
HTTP/1.1 200 OK