My domain is: lolmewn.nl
I ran this command: certbot certonly --webroot --agree-tos --no-eff-email --email lolmewn@gmail.com -w /var/www/letsencrypt -d www.lolmewn.nl -d lolmewn.nl
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
404 Not Found
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for www.lolmewn.nl
http-01 challenge for lolmewn.nl
Using the webroot path /var/www/letsencrypt for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Unable to clean up challenge directory /var/www/letsencrypt/.well-known/acme-challenge
Failed authorization procedure. www.lolmewn.nl (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.lolmewn.nl/.well-known/acme-challenge/GHMYgALPOAqJeqX1hBvVjHvId6_dJu2rU-Z--r71wds: "Not Found
<p", lolmewn.nl (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://lolmewn.nl/.well-known/acme-challenge/veE0Adz3uFX_Kt1fpf_7Mmed5d1i8gc5XBnl1RpVru8: " 404 Not FoundNot Found
<p"IMPORTANT NOTES:
The following errors were reported by the server:
Domain: www.lolmewn.nl
404 Not Found
Type: unauthorized
Detail: Invalid response from
http://www.lolmewn.nl/.well-known/acme-challenge/GHMYgALPOAqJeqX1hBvVjHvId6_dJu2rU-Z--r71wds:
"Not Found
<p"Domain: lolmewn.nl
404 Not Found
Type: unauthorized
Detail: Invalid response from
http://lolmewn.nl/.well-known/acme-challenge/veE0Adz3uFX_Kt1fpf_7Mmed5d1i8gc5XBnl1RpVru8:
"Not Found
<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
The operating system my web server runs on is (include version): Ubuntu 16.04
My hosting provider, if applicable, is: x
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
Furthermore, I set this up: http://lolmewn.nl/.well-known/acme-challenge/test
I am following this tutorial: How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating) · GitHub which includes nginx config files for certbot. If required, I can attach the debug logs, but they are quite lengthy.
PS: This is a fresh server, almost nothing installed on it.