2017-04-17 95 views
0

我正在使用debain jessie,certbot版本0.9.3-1〜bpo8 + 2。自從最近兩天以來,我一直在爲我的網站更新證書時發生此錯誤。續訂letsencrypt證書失敗

Could not bind TCP port 443 because it is already in use by another process on 
this system (such as a web server). Please stop the program in question and then 
try again. 
------------------------------------------------------------------------------- 
Attempting to renew cert from /etc/letsencrypt/renewal/www.testsite.com.conf produced an unexpected error: object of type 'NoneType' has no len(). Skipping. 

我該怎麼辦?我對Letsencrypt並不熟悉。任何人都請在這個燈上點燈?

回答

3

只需停止您的網絡服務器並再次運行。如果使用的是使用nginx sudo service nginx stop

2

我還沒有找到一種方式「零宕機」要做到這一點,但你可以自動停止/ nginx的用鉤子開始,所以你可以處理的cron更新:

certbot renew --pre-hook "service nginx stop" --post-hook "service nginx start" 
相關問題