Failed to authenticate/ refused to conncet

My domain is:

I ran this command:
docker-compose logs certbot
It produced this output:
Attaching to certbot
certbot | Saving debug log to /var/log/letsencrypt/letsencrypt.log
certbot | Requesting a certificate for daleelalhurra.com and www.daleelalhurra.com
certbot |
certbot | Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
certbot | Domain: daleelalhurra.com
certbot | Type: connection
certbot | Detail: 64.226.65.26: Fetching http://daleelalhurra.com/.well-known/acme-challenge/oX4xBBWO1rgRyhclMqHa8uCPIbxXBFnZeEai27IcwnI: Connection refused
certbot |
certbot | Domain: www.daleelalhurra.com
certbot | Type: connection
certbot | Detail: 64.226.65.26: Fetching http://www.daleelalhurra.com/.well-known/acme-challenge/O21QX1jeX2wJ4gJRej-BjJyhmIQh3Hb0LZeqwLdPxCw: Connection refused
certbot |
certbot | Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.
certbot |
certbot | Some challenges have failed.
certbot | 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):
nginx
The operating system my web server runs on is (include version):
ubuntu
My hosting provider, if applicable, is:
digital ocean
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):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):

i deleted some docker things in /lib/docker/overlay2, then the docker compose doesnt build ot run, then itried many things and the problem is with certbot and ssl, the website doesnt connect

The problem is your domain cannot be reached using HTTP. I fail even trying to get your "home" page. The HTTP Challenge needs HTTP connections to work.

You should first get your site working using HTTP before trying to get a cert

curl -i http://www.daleelalhurra.com
curl: (7) Failed to connect to www.daleelalhurra.com port 80 after 128 ms: 
Connection refused
5 Likes

how to do it? ive used docker compose build, docker compose up -d, they turned fine but still not working
also i get this when trying to docker compose up certbot
root@ubuntu-s-1vcpu-512mb-10gb-fra1-01:~/daleel0.31# docker-compose up --force-recreate --no-deps certbot
Recreating certbot ... done
Attaching to certbot
certbot | Saving debug log to /var/log/letsencrypt/letsencrypt.log
certbot | Requesting a certificate for daleelalhurra.com and www.daleelalhurra.com
certbot | An unexpected error occurred:
certbot | Error creating new order :: too many failed authorizations recently: see Failed Validation Limit - Let's Encrypt
certbot | 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.
certbot exited with code 1
root@ubuntu-s-1vcpu-512mb-10gb-fra1-01:~/daleel0.31#

You should use the Let's Encrypt staging system while testing. You now need to wait an hour for too many failed attempts.

You should focus on getting your domain to respond to HTTP requests. Try using the https://letsdebug.net test site.

This is not a Certbot problem. It is a basic connection problem to your domain. I can reach your domain using port 22 but not port 80 (HTTP). Review all your network config. Or, consult your hosting service why nginx is not available on HTTP

5 Likes

AND
Check your config:

3 Likes

Your Ports 80 & 443 are closed - Best Practice - Keep Port 80 Open.

$ nmap -Pn -p80,443 www.daleelalhurra.com
Starting Nmap 7.80 ( https://nmap.org ) at 2024-02-01 17:02 UTC
Nmap scan report for www.daleelalhurra.com (64.226.65.26)
Host is up (0.16s latency).

PORT    STATE  SERVICE
80/tcp  closed http
443/tcp closed https

Nmap done: 1 IP address (1 host up) scanned in 0.49 seconds
$ nmap -Pn -p80,443 daleelalhurra.com
Starting Nmap 7.80 ( https://nmap.org ) at 2024-02-01 17:02 UTC
Nmap scan report for daleelalhurra.com (64.226.65.26)
Host is up (0.16s latency).

PORT    STATE  SERVICE
80/tcp  closed http
443/tcp closed https

Nmap done: 1 IP address (1 host up) scanned in 0.41 seconds
2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.