web-https免费证书

Nginx on CentOS/RHEL 7

yum -y install yum-utils
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
sudo yum install certbot-nginx
sudo certbot --nginx

实际使用的时候用python安装的方式没问题,使用yum安装会缺少python包。

自动更新:
测试一下
sudo certbot renew --dry-run
新建一个 crontab
0 0,12 * * * python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew