https://freessl.cn/login

注册登录

image-20210912000403652 image-20210912000454384 image-20210912000551121

没有下载KeyManager的先下载,下载完了打开,设置好密码。从KeyManager生成证书预览后回到浏览器点击继续,然后。

image-20210912002042628

到域名解析服务商那里填写这些值并开启

image-20210912002231861

到这个网站去测试是否已经成功:https://myssl.com/dns_check.html?domain=jihejingjia.cn&brand=2&type=2&txt=KCJcZbY8avWx3a8pFmqk9nOhNlgP_Hs5jBJyPtHCh74#ssl_verify

image-20210912002335763

在KeyManager上申请。

image-20210912001013881

image-20210912001050031

image-20210912001152732

image-20210912001213682

image-20210912001250887

nginx配置

把上面导出的两个文件放到服务器一个目录下

image-20210912002539813

配置nginx.conf文件

image-20210912002630849

重启nginx

1
2
pkill -9 nginx
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

参考:https://www.cnblogs.com/wangcp-2014/p/9922845.html