Try it with sudo ?
That would be a real stretch; as the error message seems to have nothing to do with permissions/rights.
But I’m just plain out of logical solutions.
for your next attempt(s) add --debug
to get greater detail in the /var/log/letsencrypt/letencrypt.log
maybe even move that log out and start a new one.
run the test that fails and post that log file here.
I currently have a jail that is working with ssl via letsencrypt. I’m trying to write a script to install it from scratch. I’ve changed my pfsense alias to point to the new IP of the test jail and run the script to install the test jail. to get nginx working I have to copy the working jail letsencrypt jail to the new test jail. When running the cerbot command with the staging option I get congratulations but if I run it without copying the working jails live cert I still get the same error. Sorry for the confusion.
Sorry for the delay was away. Picked up where we left off. I rm -r letsencrypt/ to delete the prior certificates and then ran certbot certonly --debug --webroot -w /usr/local/www -d example.ddns.net --agree-tos -m myemail@gmail.com --no-eff-email
And if worked and I got the “Congratulations! Your certificate and chain have been saved at:” message. When I destroyed the jail and started from scratch it didn’t work. Here is the debug log. https://pastebin.com/848rrqJW
Thanks so much for you help.