OpenSUSE Leap 15 and Certbot upgrade / install

The issue in current opensuse 15.0 package:
certbot --version
certbot 0.30.2

It seems to be that it installs certificates and maintains configuration in /etc/certbot instead of default /etc/letsencrypt BUT does not use it from there for many commands such as:

certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
No certs found.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

or:

certbot renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

No renewals were attempted.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

This can be solved by one of following ways:
a) using –config-dir /etc/certbot option every time
b) creating /etc/letsencrypt while maintaining /etc/certbot for opensuse compatibility

sudo mv /etc/letsencrypt /etc/letsencrypt.empty
sudo mv /etc/certbot /etc/letsencrypt
sudo ln -s /etc/letsencrypt /etc/certbot

Either a) or b) works

Hope it helps, Tomas

1 Like