Nginx-免费SSL证书(letsencrypt)申请

通过acme.sh脚本从 letsencrypt 生成免费的证书

官网:https://github.com/acmesh-official/acme.sh/wiki/%E8%AF%B4%E6%98%8E

1、安装acme.sh

curl https://get.acme.sh | sh

2、在阿里云控制台用户管理中创建AccessKey

3、编写执行脚本

cd /root/.acme.sh

vi start.sh

编辑内容

export Ali_Key=”阿里key”
export Ali_Secret=”阿里Secret”
./acme.sh –issue –dns dns_ali -d 域名

保存

:wq

执行 sh start.sh