ssl证书免费申请 - yuzhouxiaogegit/blog GitHub Wiki

ssl 一键生成证书脚本:

安装脚本 注意:要修改邮箱

wget -O -  https://get.acme.sh | sh -s [email protected]

(http验证)注意:要修改域名 mydomain.com 、后面的目录要是网站的根目录

~/.acme.sh/acme.sh  --issue  -d mydomain.com -d www.mydomain.com  --webroot  /home/wwwroot/mydomain.com/

将证书移动,指定的文件中(nginx中)注意:要修改域名 mydomain.com

~/.acme.sh/acme.sh --installcert -d mydomain.com --key-file /root/ssl/mydomain.com.key --fullchain-file /root/ssl/mydomain.com.crt