Challenge failed for domain

Hi - my first time to deploying a laravel 8 project to AWS EC2 Ubuntu 20.04:

My domain is:
1: ctfs-covipasspro.co.za
2: www.ctfs-covipasspro.co.za

I ran this command:
sudo certbot

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache

Which names would you like to activate HTTPS for?


1: ctfs-covipasspro.co.za
2: www.ctfs-covipasspro.co.za


Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for ctfs-covipasspro.co.za
Waiting for verification...
Challenge failed for domain ctfs-covipasspro.co.za
http-01 challenge for ctfs-covipasspro.co.za
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: ctfs-covipasspro.co.za
    Type: dns
    Detail: DNS problem: NXDOMAIN looking up A for
    ctfs-covipasspro.co.za - check that a DNS record exists for this
    domain

My web server is (include version):
AWS EC2

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

My hosting provider, if applicable, is:
AWS

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 --version
certbot 0.40.0

You do not have any DNS records for that domain name. Once you create those, you can try this to check it

https://toolbox.googleapps.com/apps/dig/#A/

And this to evaluate your http site to see if a certificate could be issued

https://letsdebug.net/
2 Likes

Thank you for your reply. This is my first deployment on AWS (new to the setting up) so please bear with me.

Here is my DNS records:

image

I used this link : https://letsdebug.net/

and got this:
NoRecords FATAL No valid A or AAAA records could be ultimately resolved for ctfs-covipasspro.co.za. This means that Let's Encrypt would not be able to to connect to your domain to perform HTTP validation, since it would not know where to connect to. No A or AAAA records found.

Those look like DNS records but they do not seem to be used. Check where you registered your domain name and ensure the Name Servers are correct. If you need an intro, I saw this on google after a quick search:

If Lets Debug cannot see your site, you will not be able to issue a cert. You must have a working http site to create a cert using the http challenge.

2 Likes

Thank you. I will reply here when i have figured this out.

1 Like

You should leave that line blank - just hit ENTER.

2 Likes

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