Error when get certificate Invalid response from /.well-known/acme-challenge

My domain is: dengerrrr.com

I ran this command: sudo certbot certonly --apache

It produced this output:
IMPORTANT NOTES:

I have already point an A record

How can I resolve this?

1 Like

Are you sure that’s the correct server? Are you running Certbot on the same computer as the Apache server?

Can you post the output of “sudo apachectl -t -D DUMP_VHOSTS” and the contents of the Apache virtual host?

Can you also answer the other questions?


It produced this output:

My web server is (include version):

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

My hosting provider, if applicable, is:

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

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):

2 Likes

Hi @dengerrrr

checking your domain via https://check-your-website.server-daten.de/?q=dengerrrr.com - that may not work.

Your ip addresses:

Host Type IP-Address is auth. ∑ Queries ∑ Timeout
dengerrrr.com A 35.153.18.54 Ashburn/Virginia/United States (US) - Amazon Technologies Inc. Hostname: ec2-35-153-18-54.compute-1.amazonaws.com yes 2 0
A 50.63.202.41 Scottsdale/Arizona/United States (US) - GoDaddy.com, LLC Hostname: ip-50-63-202-41.ip.secureserver.net yes 2 0
A 184.168.221.48 Scottsdale/Arizona/United States (US) - GoDaddy.com, LLC Hostname: ip-184-168-221-48.ip.secureserver.net yes 2 0
AAAA yes
www.dengerrrr.com C dengerrrr.com yes 1 0

Your www points per CNAME to your non-www.

Your non-www has 3 ip addresses, two from GoDaddy (secureserver), one from Amazon.

So if you run your certbot on your Amazon, Letsencrypt picks the wrong ip to check your domain name.

• ns37.domaincontrol.com is one of your name servers, so from GoDaddy.

Update your DNS so only the Amazon ip is used.

PS: IP addresses are public, that’s required a browser can find your website. So hiding ip addresses blocks help.

2 Likes

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