Firstly my certificates were created for mysubdomain.witr.net with certbot like so:
sudo apt-get install certbot -t stretch-backports sudo certbot certonly --webroot -w /path/to/http/server/web/dir1
All is fine.
Some days after, I changed the directory of http server web path (ansible refactoring)
When certificate is near to expire, and I’m going to renew its validity, always with certbot, I’m having following error:
could not find path /path/to/http/server/web/dir1
Fixed by changing certbot configuration in
# edit following line option to set the good path: mysubdomain.witr.net = /new/path