续订letsencrypt证书SSL - AMI Linux Amazon

时间:2017-02-11 19:15:42

标签: ssl-certificate lets-encrypt

我尝试使用AMI Linux Amazon在EC2上续订SSL证书,但我收到以下错误:

[ec2-user@ip-xxx-xx-xx-xx letsencrypt]$ ./letsencrypt-auto renew

Error: couldn't get currently installed version for /home/ec2-user/.local/share/letsencrypt/bin/letsencrypt: 
Traceback (most recent call last):
File "/home/ec2-user/.local/share/letsencrypt/bin/letsencrypt", line 7, in <module>
from certbot.main import main
File "/home/ec2-user/.local/share/letsencrypt/local/lib/python2.7/dist-packages/certbot/main.py", line 12, in <module>
import zope.component
File "/home/ec2-user/.local/share/letsencrypt/local/lib/python2.7/dist-packages/zope/component/__init__.py", line 16, in <module>
from zope.interface import Interface
ImportError: No module named interface

知道如何解决?

2 个答案:

答案 0 :(得分:0)

Someone had the same problem as you,从我们的加密中查看社区论坛。

该线程的一个解决方案是:

  

基本上,我是从头开始重新安装的:

cd $HOME/.local/share
rm -fr letsencrypt
unset PYTHON_INSTALL_LAYOUT
./certbot-auto -d DOMAIN certonly --webroot -w DOCUMENT_ROOT --debug

答案 1 :(得分:0)

我在最初使用cert-bot设置并运行良好的Amazon Linux实例中遇到了相同的问题。我试图通过关注另一篇文章来解决其他问题,这也是我来的结果

最后,我必须执行以下操作

rm -rf /opt/eff.org/*

这可能会失败,但是会设置一个干净的虚拟环境

./certbot-auto --debug

cd /opt/eff.org/certbot/venv/lib64/python2.7

mv site-packages site-packages.sav

ln -s dist-packages/ site-packages

您现在可以再次运行certbot-auto

./certbot-auto --debug