I changed my server from Fedora to Debian and backed /etc/letsencrypt directory. On the new server, I have restored that directory and installed a new let’s encrypt client from github.
Now this happens when I try to renew the certificate:
$ sudo ./letsencrypt-auto certonly --renew-by-default --webroot -w /var/www/html -d dns.domain.net
Checking for new version...
Requesting root privileges to run letsencrypt...
/root/.local/share/letsencrypt/bin/letsencrypt --no-self-upgrade certonly --renew-by-default --webroot -w /var/www/html -d dns.domain.net
An unexpected error occurred:
OSError: [Errno 22] Invalid argument: '/etc/letsencrypt/live/dns.domain.net/cert.pem'
Please see the logfiles in /var/log/letsencrypt for more details.
Document root path has also changed so I tried changing it in /etc/letsencrypt/renew.
Please let me know if you need the log files.