CENTOS7 NGINX YUM安装 CERTBOT

安装CERTBOT
yum install yum-utils
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
yum install certbot-nginx

获取网站证书
certbot certonly --webroot -w /www/phpker.com -d phpker.com -d www.phpker.com

NGINX配置
listen 443;
ssl on;
ssl_certificate /etc/letsencrypt/live/phpker.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/phpker.com/privkey.pem;

更新证书(加入cron计划)
certbot renew