Detail: no valid A records found for;

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. |, so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command: certbot certonly --webroot -v

It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Please enter the domain name(s) you would like on your certificate (comma and/or
space separated) (Enter 'c' to cancel):
Requesting a certificate for
Performing the following challenges:
http-01 challenge for
Input the webroot for (Enter 'c' to cancel): /root/apache-tomcat-9.0.82/webapps/ROOT
Waiting for verification...
Challenge failed for domain
http-01 challenge for

Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
** Domain:**
** Type: dns**
** Detail: no valid A records found for; no valid AAAA records found for**

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.

Cleaning up challenges
Some challenges have failed.
Ask for help or search for solutions at See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

My web server is (include version):apache-tomcat-9.0.82

The operating system my web server runs on is (include version):Ubuntu16.04.12 64bit

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

DNS record:


I guess my DNS record is correct, IP address is public IP and test file can download from my web site successfully, but it still didn't work. :smiling_face_with_tear:I don't have any idea about how to do next, someone can give some help? Thanks. :joy:

Nope, it isn't. You're missing the www subdomain. The error clearly stated the www subdomain and it's missing from your DNS record screenshot.


Fantastic! :smiley:It works. I have already added the www subdomain to my DNS records, thanks a lot.


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