Nginx + CertBot 配置HTTPS泛域名证书

# 安装certbot
yum install certbot python2-certbot-nginx -y
# 自动配置, --nginx-server-root指定nginx配置文件目录
certbot --nginx --nginx-server-root /usr/local/nginx/conf
# 自动续约
certbot renew --dry-run

执行完后nginx.conf会自动加上SSL相关配置

你可能感兴趣的:(nginxcertbot)