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...
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
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:
Then update letsencrypt:
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 = email@example.com