So, today I had to update one of my SSLs on a site I run on Amazon AWS
I entered the command to renew the certificate:
/home/letsencrypt/letsencrypt-auto --config /home/letsencrypt/cli.ini -d mydomain.com -d www.mydomain.com certonly && service httpd reload
and got this error:
Creating virtual environment...
Installing Python packages...
Installation succeeded.
Traceback (most recent call last):
File "/root/.local/share/letsencrypt/bin/letsencrypt", line 7, in
from certbot.main import main
File "/root/.local/share/letsencrypt/local/lib/python2.7/dist-packages/certbot/main.py", line 11, in
import zope.component
File "/root/.local/share/letsencrypt/local/lib/python2.7/dist-packages/zope/component/__init__.py", line 16, in
from zope.interface import Interface
ImportError: No module named interface
After lots of research I found a Japanese blog with the solution.
Just enter this as sudo on the command prompt:
unset PYTHON_INSTALL_LAYOUT
Then update letsencrypt:
./letsencrypt-auto -v
And run the command to renew your certificate.
p.s.: This is how my cli.ini looks like:
authenticator = webroot
webroot-path = /var/www/html/
server = https://acme-v01.api.letsencrypt.org/directory
renew-by-default = true
agree-tos = true
email = webmaster@mydomain.com