Let's Encrypt安装时出现等待

使用Let's Encrypt创建ssh密钥时出现Installing Python packages一直等待的解决办法。

[root@iZ8vb6jluk3qc314gryri7Z site]# ./certbot-auto renew --nginx --no-self-upgrade
Bootstrapping dependencies for RedHat-based OSes that will use Python3... (you can skip this with --no-bootstrap)
dnf is /usr/bin/dnf
dnf is hashed (/usr/bin/dnf)
Repository epel is listed more than once in the configuration
Last metadata expiration check: 0:24:33 ago on Wed 16 Sep 2020 07:50:20 PM CST.
Package gcc-8.3.1-5.el8.0.2.x86_64 is already installed.
Package augeas-libs-1.12.0-5.el8.x86_64 is already installed.
Package openssl-1:1.1.1c-15.el8.x86_64 is already installed.
Package openssl-devel-1:1.1.1c-15.el8.x86_64 is already installed.
Package libffi-devel-3.1-21.el8.x86_64 is already installed.
Package redhat-rpm-config-122-1.el8.noarch is already installed.
Package ca-certificates-2020.2.41-80.0.el8_2.noarch is already installed.
Package python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64 is already installed.
Package python3-virtualenv-15.1.0-19.module_el8.1.0+245+c39af44f.noarch is already installed.
Package python36-devel-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Creating virtual environment...
Installing Python packages...

通过手动方式安装或许更快,以CentOS8环境nginx为例:

1、通过定制页面定制参数:

https://certbot.eff.org/instructions

2、下载并安装文件:

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

3、安装certbot客户端

sudo dnf install certbot python3-certbot-nginx

4、安装加密证书

sudo certbot --nginx