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

My domain is:

I ran this command: sudo certbot certonly --apache

It produced this output:

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


Hi @dengerrrr

checking your domain via - that may not work.

Your ip addresses:

Host Type IP-Address is auth. ∑ Queries ∑ Timeout A Ashburn/Virginia/United States (US) - Amazon Technologies Inc. Hostname: yes 2 0
A Scottsdale/Arizona/United States (US) -, LLC Hostname: yes 2 0
A Scottsdale/Arizona/United States (US) -, LLC Hostname: yes 2 0
AAAA yes C 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.

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

1 Like

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