renew expired let’s encrypt certificate with certbot
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 /etc/letsencrypt/renewal/mysubdomain.witr.net.conf
# edit following line option to set the good path:
mysubdomain.witr.net = /new/path
Leave a Reply