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:
whatbank.ca
www.whatbank.ca
I ran this command:
sudo certbot --nginx -d whatbank.ca -d www.whatbank.ca
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Cert is due for renewal, auto-renewing...
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for whatbank.ca
http-01 challenge for www.whatbank.ca
Waiting for verification...
Challenge failed for domain whatbank.ca
Challenge failed for domain www.whatbank.ca
http-01 challenge for whatbank.ca
http-01 challenge for www.whatbank.ca
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: whatbank.ca
Type: unauthorized
Detail: Invalid response from
https://whatbank.ca/.well-known/acme-challenge/qln2LHOVpkBLW1IyncvvsPZ-ztKOnO7BtRaItcuH-pg
[75.2.60.5]: "<!DOCTYPE html>\n<html lang=\"en-us\">\n<head>\n
<meta charset=\"utf-8\">\n<meta name=\"viewport\"
content=\"width=device-width, initial"
Domain: www.whatbank.ca
Type: unauthorized
Detail: Invalid response from
https://whatbank.ca/.well-known/acme-challenge/OnhfsGooTL8nXqopJZuBh3hMXZg3IlrTQLudYQmRhYk
[75.2.60.5]: "<!DOCTYPE html>\n<html lang=\"en-us\">\n<head>\n
<meta charset=\"utf-8\">\n<meta name=\"viewport\"
content=\"width=device-width, initial"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
My web server is (include version):
nginx version: nginx/1.18.0 (Ubuntu)
The operating system my web server runs on is (include version):
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
My hosting provider, if applicable, is:
Digital Ocean
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 0.40.0
The file /etc/nginx/sites-available/whatbank.ca is:
server {
if ($host = www.whatbank.ca) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = whatbank.ca) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name whatbank.ca www.whatbank.ca;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name whatbank.ca www.whatbank.ca;
ssl_certificate /etc/letsencrypt/live/whatbank.ca-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/whatbank.ca-0001/privkey.pem; # managed by Certbot
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers AES256+EECDH:AES256+EDH:!aNULL;
location / {
# proxy_pass https://infallible-hypatia-9e85e7.netlify.app;
# proxy_redirect http://178.128.239.248:3838/ https://$host/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 20d;
}
}
Does this have something to do with NGINX thinking that the challenge request is a 404 error and redirecting the page to Page Not Found
If so, how do I edit /etc/nginx/sites-available/whatbank.ca so that Certbot challenge requests are treated properly?