Error creating certificate

My domain is: niceatc.com.br

I ran this command: certbot certonly --nginx -d vps.niceatc.com.br

It produced this output:

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: vps.niceatc.com.br
Type: connection
Detail: 134.65.233.251: Fetching http://vps.niceatc.com.br/.well-known/acme-challenge/zvmst_nYdnn00MZcr7BpEX_GxuQLi3cb7fVFaM2RwpM: 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.

4 Likes

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;
        server_name  vps.niceatc.com.br;
        #root /your/default/webserver/folder;
    }
3 Likes

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

2 Likes

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

2 Likes