永久免费ssl证书
215
0
0
83天前
###证书申请参考如下网址
https://blog.freessl.cn/acme-quick-start/
###acme.sh 下载并安装
```
curl https://gitcode.net/cert/cn-acme.sh/-/raw/master/install.sh?inline=false | sh -s email=my@example.com
```
###生成ssh证书脚本
```
#!/bin/bash
/root/.acme.sh/acme.sh --install-cert -d 域名地址 --key-file /home/data/nginx/sslkey/media/private.key --fullchain-file /home/data/nginx/sslkey/media/public.pem
```
###crontab 定时更新(单次证书有效期是3个月,快到3个月前更新一次)
```
0 0 */85 * * sh /home/xxx/shell/rssl.sh
```