使用ACME获取证书
使用ACME获取证书
下载安装acme.sh
curl https://get.acme.sh | sh
ZeroSSL注册
ACME登录
cd /root/.acme.sh
./acme.sh --register-account --server zerossl \
--eab-kid <你的eab-kid> \
--eab-hmac-key <你的eab-hmac-key>Cloudflare环境变量配置
export CF_Token=<你的CF_Token> \
export CF_Account_ID=<你的CF_Account_ID> \
export CF_Zone_ID=<你的Zone_ID>获取证书
acme.sh --issue --dns dns_cf -d <domain> -d *.<domain>证书写入
cd /root/.acme.sh
./acme.sh --install-cert -d <域名> --key-file /root/cert/<域名>.key --fullchain-file /root/cert/<域名>.crt
配置 acme.sh 自动更新和自动更新证书
cd /root/.acme.sh
./acme.sh --upgrade --auto-upgrade
本文链接:
/archives/1697693520682
版权声明:
本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自
锦轩个人小站!
喜欢就支持一下吧
打赏
微信
支付宝
微信
支付宝