I ran this command: sudo certbot --apache -d sunpixel.ir
It produced this output:
root@root:~# sudo certbot --apache -d sunpixel.ir
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for sunpixel.ir
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: sunpixel.ir
Type: unauthorized
Detail: 45.81.18.104: Invalid response from http://sunpixel.ir/.well-known/acme-challenge/lpy48Tzbo94s-kvlc02lKHALp2SD1W16u1VYNQjfyNk: 504
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 - 2.4.52
The operating system my web server runs on is (include version): Ubuntu 22.04.4
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): certbot 2.9.0
ANotWorking
ERROR
sunpixel.ir has an A (IPv4) record (45.81.18.104) but a request to this address over port 80 did not succeed. Your web server must have at least one working IPv4 or IPv6 address.
A timeout was experienced while communicating with sunpixel.ir/45.81.18.104: Get "http://sunpixel.ir/.well-known/acme-challenge/letsdebug-test": context deadline exceeded
Trace:
@0ms: Making a request to http://sunpixel.ir/.well-known/acme-challenge/letsdebug-test (using initial IP 45.81.18.104)
@0ms: Dialing 45.81.18.104
@10000ms: Experienced error: context deadline exceeded
Hey @Bruce5051 thank you!
My friend setup some stuff in Cloudflare to prevent simple DDoS attacks, Asked him about ddos-guard.net and he has no idea what that is.
Also I tried million times to create a SSL certificate using Certbot maybe that's why we've a SSL certificate, if we've why the website isn't loading with https:// ?
I'll check the Cloudflare for more information about ddos-guard and something which blocks any request and connection, thank you for you help.
Hey there, the problem was my hosting provider was blocking incoming connections with DDoS-Guard, they disabled it temporarily for me and I created the SSL certificate, thanks for support everyone!
@Kriss that will likely need to happen every renewal;
certificates expire 90 days after being issued (presently, short maybe coming in the future). The recommendation is to renew the certificate at 2/3 of its lifetime, that means a renewal every 60 days.