I ran this command: certbot certonly --nginx --dry-run -d simoncircle.se
It produced this output:
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 simoncircle.se
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. simoncircle.se (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://simoncircle.se/.well-known/acme-challenge/wQpMVaGjQJk7dOMc2avtAaEqB8PvDJN8XAqmt2G4W_A [81.231.60.74]: “\r\nDocument Error: Not Found\r\n
Access Error: 404 – Not Found
\r\n
”
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: simoncircle.se
Type: unauthorized
Detail: Invalid response from
http://simoncircle.se/.well-known/acme-challenge/wQpMVaGjQJk7dOMc2avtAaEqB8PvDJN8XAqmt2G4W_A
[81.231.60.74]: "<!DOCTYPE html>\r\n<html><head><title>Document
Error: Not Found</title></head>\r\n<body><h2>Access Error: 404 --
Not Found</h2>\r\n<p>"
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.0 (Ubuntu)
The operating system my web server runs on is (include version): Ubuntu 18.04
My hosting provider, if applicable, is: Hosting on my own server
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.31.0
When I use the --debug-challenges option, then take the location of the key and put into a browser, it works just fine but the certbot cannot verify it.
When I run: certbot run -a webroot certonly -w /var/www/simoncircle.se/ -d simoncircle.se -d www.simoncircle.se
I just get: certbot: error: unrecognized arguments: certonly
I have created /var/www/simoncircle.se/.well-known/acme-challenge/1234, with hello in it. If you curl that with curl http://simoncircle.se/.well-known/acme-challenge/1234, you get 200 OK and the response is Hello
I have just changed the IP of the LXC Container and changed my port-forwarding settings accordingly, to ensure that it was not a IP overlapping issue. Because all my websites were redirecting to the Hikvision stuff before on my mobile phone.