1
|
curl https://get.acme.sh | sh
|
1
2
3
|
[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内引用该文件,该文件可能会在以后的升级中结构发生改变
1
2
3
4
|
[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
|
文章作者
cnbattle
上次更新
2018-03-31
许可协议
知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议