Certbot 不再支持 Ubuntu 14 上的 apt-get 安装。但是您仍然可以安装。为此,请通过 SSH 登录到服务器并运行:
wget https://dl.eff.org/certbot-auto
sudo mv certbot-auto /usr/local/bin/certbot
sudo chown root /usr/local/bin/certbot
sudo chmod 0755 /usr/local/bin/certbot
然后像往常一样使用。certbot
资料来源:https://certbot.eff.org/lets-encrypt/pip-apache
如果收到类似 的错误,则:CryptographyDeprecationWarning: Support for your Python version is deprecated
# Remove the Certbot virtual environment
rm -r /opt/eff.org/certbot/
# Install a new version of Python 2.7
wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
tar xfz Python-2.7.18.tgz
cd Python-2.7.18/
sudo ./configure --prefix /usr/local/lib/python2.7.18
sudo make && sudo make install
cd ..
rm -r Python-2.7.18.tgz Python-2.7.18
# And run Certbot once with the new Python:
PATH=/usr/local/lib/python2.7.18/bin:$PATH certbot renew
然后像往常一样运行。certbot