Good afternoon all, I am struggling to get certbot to issue an initial certificate for my domain, I run into an invalid response error. I have access to the server and can run commands at root. i have placed a folder under /var/www/html/.well-known/acme-challenge and can access that from my browser. i foward my domain name using http://dmtc.ddns.net and i have port 80 and 443 open on my router forwarding traffic to the pi. many thanks in advance for your help
My domain is:dmtc-homeserver.co.uk
I ran this command:
sudo certbot certonly --agree-tos --webroot -w /var/www/html/ -d dmtc-homeserver.co.uk -d www.dmtc-homeserver.co.uk
It produced this output:
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
-
Domain: dmtc-homeserver.co.uk*
-
Type: unauthorized*
-
Detail: Invalid response from dmtc-homeserver.co.uk [85.233.160.22]: "\n\n\t\n\t\t<meta http-equiv="content-type" content="text/html;"*
-
Domain: www.dmtc-homeserver.co.uk*
-
Type: unauthorized*
-
Detail: Invalid response from dmtc-homeserver.co.uk [85.233.160.22]: "\n\n\t\n\t\t<meta http-equiv="content-type" content="text/html;"*
Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.
Some challenges have failed.
My web server is (include version):
NGINX version 1.14.2
The operating system my web server runs on is (include version):
Debian 10 (Buster)
My hosting provider, if applicable, is:
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):
Certbod 1.18.0