renew expired let’s encrypt certificate with certbot

renew expired let’s encrypt certificate with certbot

Firstly my certificates were created for 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/

# edit following line option to set the good path: = /new/path

Leave a Reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see