Certbot certification failed

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. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: www.itguides.no

I ran this command:
sudo certbot --apache
It produced this output:
Domain: www.itguides.no
Type: None
Detail: DNS problem: NXDOMAIN looking up A for www.itguides.no
My web server is (include version):
Apache 7.2
The operating system my web server runs on is (include version):
Ubuntu 18.04 LTS
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):
Google cloud
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): 0,31,0

Hi @magg3rn

checking your domain via https://check-your-website.server-daten.de/?q=itguides.no that can't work.

Host T IP-Address is auth. ∑ Queries ∑ Timeout
itguides.no A 35.230.150.197 Ashburn/Virginia/United States (US) - Google LLC Hostname: 197.150.230.35.bc.googleusercontent.com yes 1 0
AAAA yes
www.itguides.no Name Error yes 1 0

Your non-www version has an ipv4 address (A-record), your www version doesn't have an A-record.

So you can't use http validation to validate your domain.

Create an A-record with the same ip address.

1 Like

If they will always be at the same IP, you can CNAME www.itguides.no to itguides.no.
[that way you only need to change it in one place should the IP info ever change]

1 Like

So after adding the www version into the A-record it was completed successfully, When i try to check the certificate it says this

1 Like

I fixed it. hell yeah. It was a wrongly typed name in my web server conf

2 Likes

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