Need help with certbot

rena@renaserver:~$ sudo certbot --nginx
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Please enter the domain name(s) you would like on your certificate (comma and/or
space separated) (Enter 'c' to cancel): zypher.site
Requesting a certificate for zypher.site

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: zypher.site
Type: unauthorized
Detail: 2606:4700:3035::6815:1a27: Invalid response from http://zypher.site/.well-known/acme-challenge/VqoiOkkiMYLFlHL_AmuGpcNZg74JISdwApdH2PEboDA: 523

Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.

Some challenges have failed.

this is the error im getting, i have read some of the posts that people posted here but some of the problems are they are using aaaa instead of a but im using a
if someone could help thank you

Your site is completely down, see https://zypher.site/:

Origin is unreachable

You're using Cloudflare CDN. Please make sure you have a working website first.

If you're using Cloudflare, you might want to look into Cloudflares Origin CA certificates instead of using Let's Encrypt certificates on your origin server.

1 Like

I thought it was supposed to be down? Someone told me to delete all my records and make a new one for a

Supposed to be down for what exactly?

What records? DNS? Please elaborate and/or be more clear/add more details.

1 Like

yes i mean dns sorry, i had a cname before and that was pointing to another website

a cloudflare pages website

Well, currently there is neither A nor AAAA record in the DNS zone present.

1 Like

the website is online but its still giving me the same error

Please show the Certbot output of the current issue.

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: zypher.site


Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): zypher.site
** Error - Invalid selection **

Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.


1: zypher.site


Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): ^[
** Error - Invalid selection **

Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.


1: zypher.site


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 zypher.site

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: zypher.site
Type: unauthorized
Detail: 2606:4700:3036::ac43:875b: Invalid response from http://zypher.site/.well-known/acme-challenge/ld8lCLiXrclGz3EOd_wWfGm4Dt-YA1PJNyKsPGlT9-Q: 404

Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx 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.
rena@renaserver:/var/www/tutorial$

1 Like

Cloudflare can sometimes interfer with the challenge for some reason. I'm not really familiar with Cloudflare and the many options one can enable at Cloudflare, so maybe another volunteer can help you with that.

Alternatively you could still look into the origin certificates from Cloudflare, see the link I posted earlier.

i got everything working i dont get the error anymore but i get a new one i dont have aaaa dns setup but how do i get my ipv6?

You do have AAAA records. They are part of the Cloudflare "proxy" setup you did. These are their current values:

zypher.site.	0	IN	AAAA	2606:4700:3036::ac43:875b
zypher.site.	0	IN	AAAA	2606:4700:3035::6815:1a27

I believe Cloudflare CDN uses IPv4 to your Origin Server unless it is IPv6 only. That is something to discuss on the Cloudflare community or from its docs.

3 Likes

My domain is:
zypher.site

I ran this command:
sudo service nginx start

It produced this output:
rena@renaserver:/etc/nginx/sites-available$ sudo service nginx start
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.

My web server is (include version):
nginx

The operating system my web server runs on is (include version):
ubuntu 24.04 lts

My hosting provider, if applicable, is:
nginx? cloudflare?

I can login to a root shell on my machine (yes or no, or I don't know):
i dont know

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.11.0

The problem im having is that before i had installed the certbot everything was working fine i could access the website outside of my home wifi but when i installed certbot nginx wont turn on

I moved your new post/thread onto this one. This is a continuing problem and it is helpful for us to see the history in one place.

What do these commands show?

As an alternative to Certbot on your Origin server, have you looked at the link Osiris provided about using a Cloudflare Origin CA cert? That may be far easier for you than the path you are on.

Even that requires a working nginx server though. You need to show the error messages from the above for us to help though.

2 Likes

Hi @renagamer101, and welcome to the LE community forum :slight_smile:

You are using Cloudflare.
And they are using both AAAA and A:

Name:      zypher.site
Addresses: 2606:4700:3036::ac43:875b
           2606:4700:3035::6815:1a27
           172.67.135.91
           104.21.26.39

LE prefers to use the AAAA record when available - as shown in the error message:

Also shown is the "523" message from Cloudflare - which I think means that they can't connect to your site.
You need a working website in order to get an LE cert via HTTP(S).
That said, you may not even need an LE cert - Since you can get a cert directly from Cloudflare.

2 Likes

But do you know why after installing certbot Nginx won’t start? I did the let’s debug thing and it kept saying found a loop or somthing

Now without more info from you. Such as this

2 Likes

Well this is the issue I am having what info do you need more? I can try to provide it

The output of this command
systemctl status nginx.service

and this command
journalctl -xeu nginx.service

Right after your start for nginx fails.

3 Likes