2017-02-11 92 views
1

我試圖恢復與AMI Linux的亞馬遜EC2上的SSL證書,但我收到以下錯誤:續訂letsencrypt SSL證書 - AMI Linux的亞馬遜

[[email protected] 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 

任何想法如何解決?

回答

0

Someone had the same problem as you,從Let's Encrypt查看社區論壇。從該線程

一個解決辦法是:

基本上,我重新安裝了從頭開始:

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