Error creating certificate

My domain is:

I ran this command: certbot certonly --nginx -d

It produced this output:

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Type: connection
Detail: Fetching Error getting validation data

My web server is (include version): nginx/1.18.0

The operating system my web server runs on is (include version): Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-1034-oracle aarch64)

My hosting provider, if applicable, is: oracle

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

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 1.21.0

letsencrypt.txt (20.4 KB)
my log

Welcome to the community @NiceATC

Your domain cannot be reached by Let's Encrypt using HTTP. The --nginx authenticator uses the HTTP Challenge method and your domain must respond properly to the http request.

The Let's Debug test site is helpful when starting a new site.


After studying your log more I also see that you don't have any server blocks defined in nginx. You should review the nginx docs about that. But, at minimum, you should have a server block for this domain name with at least this:

    server {
        listen       80;
        #root /your/default/webserver/folder;

@NiceATC, please show:
ls -l /etc/nginx/conf.d/*.conf
ls -l /etc/nginx/sites-enabled/*


Thanks to everyone who sent solutions, however I ended up reinstalling the instance and starting over and the error was resolved


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