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:
api.olympsis.com
I ran this command:
sudo certbot --nginx -d api.olympsis.com -v
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Requesting a certificate for api.olympsis.com
Performing the following challenges:
http-01 challenge for api.olympsis.com
Waiting for verification...
Challenge failed for domain api.olympsis.com
http-01 challenge for api.olympsis.com
Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: api.olympsis.com
Type: unauthorized
Detail: 208.83.226.16: Invalid response from https://api.olympsis.com/.well-known/acme-challenge/nC2e6Vh06aQzDuMcx3Pj8LswbEVBi4uBXvCEYGTMf-c: 404
Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.
Cleaning up challenges
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.
My web server is (include version):
nginx version: nginx/1.18.0 (Ubuntu)
The operating system my web server runs on is (include version):
ubuntu 22.04
My hosting provider, if applicable, is:
self hosting. using pfsense.
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):
no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
certbot 1.31.0
The server config:
server {
listen 80;
root /var/www/html;
server_name api.olympsis.com;
location ~ /.well-known/acme-challenge {
allow all;
root /var/www/html/;
}
}
before I had a proxy pass to my api gateway but I changed it to this config to try to get an ssl cert. Been trying for 3 days T-T, I am pretty sure using pfsense is adding an extra layer of complexity to this problem. Before I changed the config I could access my api from that domain, and I can access the web server from this new config as well. I have no idea what could be going wrong, and why certbot is trying https even though my config only has http.