Getting a DNS error when trying to get a ssl cert

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. crt.sh | 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:
tomtestingtom.co.uk
I ran this command:
i ran: # sudo certbot certonly
It produced this output:
and it gave me this:

sudo certbot certonly

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Unable to read ssl_module file; not disabling session tickets.

How would you like to authenticate with the ACME CA?


1: Apache Web Server plugin (apache)
2: Runs an HTTP server locally which serves the necessary validation files under
the /.well-known/acme-challenge/ request path. Suitable if there is no HTTP
server already running. HTTP challenge only (wildcards not supported).
(standalone)
3: Saves the necessary validation files to a .well-known/acme-challenge/
directory within the nominated webroot path. A seperate HTTP server must be
running and serving files from the webroot path. HTTP challenge only (wildcards
not supported). (webroot)


Select the appropriate number [1-3] then [enter] (press 'c' to cancel): 1

Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.


1: tomtestingtom.co.uk


Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Requesting a certificate for tomtestingtom.co.uk

Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: tomtestingtom.co.uk
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for tomtestingtom.co.uk - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for tomtestingtom.co.uk - check that a DNS record exists for this domain

Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.

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

(sorry for such a long error message lol)

My web server is (include version):
im using apache2.4

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

My hosting provider, if applicable, is:
its on my own server

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

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

just some other things. here is my vhosts stuff in case thats needed:

<VirtualHost *:80>
    ServerAdmin webmaster@datalords.netm
    DocumentRoot "/home/dl-user/public_html"
    ServerName tomtestingtom.co.uk
    ErrorLog "/var/log/template-error_log"
    CustomLog "/var/log/template-access_log" common
</VirtualHost>

and here is the output of apachectl -S:

AH00557: httpd: apr_sockaddr_info_get() failed for tomtestingtom-co-uk
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:80                   tomtestingtom.co.uk (/usr/local/etc/apache24/extra/httpd-vhosts.conf:1)
ServerRoot: "/usr/local"
Main DocumentRoot: "/usr/local/www/apache24/data"
Main ErrorLog: "/var/log/httpd-error.log"
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/run/" mechanism=default
Mutex ssl-stapling-refresh: using_defaults
Mutex rewrite-map: using_defaults
PidFile: "/var/run/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www" id=80
Group: name="www" id=80
1 Like

don't think you actually bought that domain?

3 Likes

right.. heres the thing. im an intern at a hosting company. idk what funny stuff weve got going on, but im trying to figure this out relitivley solo, as in without much help of coworkers so i can actually figure out how to solve this stuff. So, from what i understand from having a talk with some people i work with, i dont exactly need to buy it, and that theres a way that were registering the domains at the same time as this somehow...

But anyways, dont worry not expecting you to know how the company opperates lol, so.. just the rest of the stuff, does that look all fine then? or are there any other issues?

Thanks

grab a subdomain from https://www.duckdns.org/ and thinker with it: that's a FQDN

1 Like

Public CAs can only issue certificates for public hostnames.

3 Likes

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