The operating system my web server runs on is (include version): Debian 8 (Jessie)
I can login to a root shell on my machine (yes or no, or I don’t know): Yes
I looked like it was pointing to the wrong webroot folder when we inspected the letsencrypt log file so we modified the .conf file in /etc/letsencrypt/renewal and changed the webroot_path and webroot_map value but this doesn’t seem to have helped.
Any reasons why you are not using the nginx authenticator and installer?
Certbot --nginx
The reason why i say that is that it will update your certificate bindings etc.
What I would recommend is that you use the nginx plugin to obtain a new certificate and once that is successful then remove the old certificate you obtained using the webroot method
Your server is refusing to serve files from the .well-known/acme-challenge directory. Try putting a test.txt file there and see if you can load that in your browser. I’m suspecting you will also see the 403. You need to figure out why your web server is refusing to serve from that directory. Posting your nginx configs will help the community assist you with this if you’re having trouble.
We also tried creating the acme-challenge folder as a sub folder to the .well-known and dropping the test.txt file in there but still couldn’t access it in the browser. We are not sure which is the live webroot folder.
All this was done on a server where the dry-run command is successful.
I can’t upload a .txt file as a new user apparently - how shall I share this nginx conf file with you? If I paste in the contents, the formatting is changed.
Just to update anyone that may read this. I was able to fix the problem but our situation is quite unique so I would be surprised if our fix helps anyone else, but you never know.
We use the server for our phone system which requires an active SSL certificate to work, the phone system installs nginx and uses a custom config file that was stored in a location I wasn’t aware of. When I eventually found this config file I was able to serve myself files from the server however I still couldn’t get Certbot to run. Adding “allow all;” to the location I was serving in the config file allowed it to work.