本文介绍 nginx 建立站点或者做代理服务器配置 ssl 的方法。
https://letsencrypt.org/
直接上指令:
# 安装工具 yum install python2-certbot-nginx # 执行命令 certbot --nginx --nginx-server-root=/usr/local/nginx/conf/ -d local.domain.com
certbot 将自动修改 nginx 对应配置,再次通过 https 的方式即可访问站点。
至此,结束。
京公网安备 11010502049817号