The error you see is that when a token is placed in your
Webroot / .well known / acme call / marker
Then Lets Encrypt tries to verify that from the Internet. going to http: //yourdomain/.well-known/acme-challenge/token , he gets a 404 error - the page was not found. That is why I cannot be sure. If you put the file there yourself, is it accessible from the Internet?
If you're interested, there are several automatic ways to renew your SSL without restarting your nginx. Most nginx users seem to prefer the webroot plugin: first get a new certificate using something like:
certbot certonly --webroot -w /path/to/your/webroot -d example.com --post-hook="service nginx reload"
Then configure the cron job to run certbot to renew once or twice a day; it will only trigger the post hook when it really renews the certificate. You can also use the --pre-hook flag if you prefer to stop nginx to run certbot offline.
Theres also a complete nginx plugin that you can activate with --nginx . It is still being checked, so experiment at your own risk and report any errors.
Note: the post-hook flag will take care of reloading the nginx update of your certificates
source share