• 安装acme.sh
curl  https://get.acme.sh | sh
[root@VM_0_16_centos ~]# export Ali_Key="xxxxxx" // 填写你的key
[root@VM_0_16_centos ~]# export Ali_Secret="xxxxxxxxxx" //填写你的 Secret
[root@VM_0_16_centos ~]# acme.sh --issue --dns dns_ali -d cnbattle.com -d *.cnbattle.com // 填写你的阿里云下的域名,多个用 `-d` 继续添加即可
  • 成功,显示如下信息就是成功了,可以去部署了,注意不要只有在Apache或Nginx内引用该文件,该文件可能会在以后的升级中结构发生改变
[2018年 03月 31日 星期六 14:23:43 CST] Your cert is in  /root/.acme.sh/cnbattle.com/cnbattle.com.cer 
[2018年 03月 31日 星期六 14:23:43 CST] Your cert key is in  /root/.acme.sh/cnbattle.com/cnbattle.com.key 
[2018年 03月 31日 星期六 14:23:43 CST] The intermediate CA cert is in  /root/.acme.sh/cnbattle.com/ca.cer 
[2018年 03月 31日 星期六 14:23:43 CST] And the full chain certs is there:  /root/.acme.sh/cnbattle.com/fullchain.cer