更新 ACME协议自动获取和续订TLS证书

X 2025-04-21 15:22:43 +00:00
parent a5453e60ea
commit 37420e2e42

@ -13,4 +13,9 @@ curl https://get.acme.sh | sh -s email=XXX@outlook.com
- 生成证书,确保DNS解析到当前服务器中
```
~/.acme.sh/acme.sh --issue -d hostname.x.com --standalone --force
```
- 设定时任务检查证书到期后自动续订crontab -e 添加以下任务
```
0 */12 * * * ~/.acme.sh/acme.sh --cron --home ~/.acme.sh
```