Date
yum -y install yum-utils

yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

yum install certbot

certbot certonly --standalone -d example.com -d www.example.com

cd /etc/letsencrypt/

find -name *.pem

vi ./archive/example.com/fullchain1.pem  #注意:文件的开头第一行必定是“-----BEGIN CERTIFICATE-----”

若报错:ImportError: No module named 'requests.packages.urllib3,执行pip install --upgrade --force-reinstall 'requests==2.6.0' urllib3即可。

原文链接:https://certbot.eff.org/#centosrhel7-other


Comments