Upon executing the command below certbot says that the connection timed out, but it should be able to connect just fine, as I manually created the folders afterwards. If I delete them, certbot doesn’t create any folders/files, so I think it could be a permission issue of sorts, but I couldn’t find any help online.
My domain is: cnmb10a.ddns.net
I ran this command: sudo certbot certonly --webroot -w /var/www/html/ -d cnmb10a.ddns.net
It produced this output: Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for cnmb10a.ddns.net
Using the webroot path /var/www/html for all unmatched domains.
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. cnmb10a.ddns.net (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://cnmb10a.ddns.net/.well-known/acme-challenge/mF-5M7qVPF2DLDwnu03GGxePaSPtlZ9mCddQ4uTf_gY: Timeout during connect (likely firewall problem)
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: cnmb10a.ddns.net
Type: connection
Detail: Fetching
http://cnmb10a.ddns.net/.well-known/acme-challenge/mF-5M7qVPF2DLDwnu03GGxePaSPtlZ9mCddQ4uTf_gY:
Timeout during connect (likely firewall problem)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. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you’re using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
My web server is (include version):
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is: Apache/2.4.38 (Raspbian)
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): certbot 0.31.0