My domain is:
ollykeeling.me
I ran this command:
sudo certbot --authenticator standalone --installer nginx --pre-hook “service nginx stop” --post-hook “service nginx start”
It produced this output:
Running pre-hook command: service nginx stop
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for ollykeeling.me
Waiting for verification…
Cleaning up challenges
Running post-hook command: service nginx start
Failed authorization procedure. ollykeeling.me (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://ollykeeling.me/.well-known/acme-challenge/g6EhSSsP_hshfe9IfKigqP0t-7JfjKntYrt1Nfg0IEo [212.159.105.9]: "\n\n<html xmlns=“http”
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: ollykeeling.me
Type: unauthorized
Detail: Invalid response from
http://ollykeeling.me/.well-known/acme-challenge/g6EhSSsP_hshfe9IfKigqP0t-7JfjKntYrt1Nfg0IEo
[212.159.105.9]: "\n\n<html
xmlns=“http”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/1.14.2
The operating system my web server runs on is (include version):
Raspberry Pi OS (buster)
My hosting provider, if applicable, is:
GoDaddy
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):
0.31.0
/etc/nginx/sites-available/ollykeeling.me
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.htm index.html;
server_name ollykeeling.me;
include snippets/letsencrypt.conf;
}
This is symlinked to /etc/nginx/sites-enabled
Root website is var/www/html/
/etc/nginx/snippets/letsencrypt.conf
location ^~ /.well-known/acme-challenge/ {
allow all;
root /var/lib/letsencrypt/;
default_type “text/plain”;
try_files $uri =404;
}
location ~ /.well-known {
allow all;
}
I have tried a number of things to date so the letsencrypt log file is quite long, but I can post that if needed