Lego: Could not create client: get directory at 'https://acme-v02.api.letsencrypt.org/directory

This would be a potential solution, except Debian Wheezy is very old and unmaintained.

You should really, really, really, upgrade to a maintained version of Debian.

You can try to work around this by manually trusting ISRG Root X1:

curl -k -o /usr/local/share/ca-certificates/isrgrootx1.crt https://letsencrypt.org/certs/isrgrootx1.pem
update-ca-certificates

then try lego again.

1 Like