I'm trying to obtain certificate for my domain (I can't share it).
The server is vanilla Ubuntu 20.04 with Nginx and Gunicorn running.
I can view the website just fine but when I run:
sudo certbot --nginx -d www.example.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator nginx, Installer nginx Obtaining a new certificate Performing the following challenges: http-01 challenge for www.example.com Waiting for verification... Challenge failed for domain www.example.com http-01 challenge for www.example.com Cleaning up challenges Some challenges have failed. IMPORTANT NOTES: - The following errors were reported by the server: Domain: www.example.com Type: unauthorized Detail: Invalid response from http://www.example.com/.well-known/acme-challenge/zla6X1i7ZI1Qz7uxYaPhsWy5J6_q8GrtBn7KlDnAB7w [220.127.116.11]: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n \"http://www.w3.org/TR/html4/strict.dtd\">\n<html>\n\n<head>\n <title>example" 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.
The DNS records appears to be correct. I'm using forwarding with masking for the domain. Meaning Godaddy is making the public ip to look like www.example.com.
certbot version 0.40.0
Any help is much appreciated.