1. 方法一 :
搞阿里的
参考一下这个链接: https://www.cnblogs.com/lpjnote/p/10759534.html
2. 方法二:
搞certbot
这是官网: https://letsencrypt.org/zh-cn/docs/
步骤1: centos7 安装一下插件
yum install -y epel-release
yum install -y certbot
#安装一下这个插件,不然没法生成ssl文件
yum install python-certbot-nginx
步骤2: 撸证书
参考链接https://blog.fundebug.com/2018/07/06/apply-lets-encrypt-certificate/
certbot --nginx -d www.abc.com -n --email test@test.com --agree-tos
注意: 上面语句会报错(python) :
解决方法: https://blog.csdn.net/lezeqe/article/details/85677822?spm=1001.2101.3001.4242
基本上 你不用搞什么, certbot会帮你创建对应的nginx.xxx.conf 和 44s/ssl 的server内容....
很傻瓜式的..