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:
Detail: 18.104.22.168: 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)
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:
@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.