acme.sh with DNS Cloudflare
install acme.sh
https://github.com/acmesh-official/acme.sh?tab=readme-ov-file
创建api key
创建 Edit zone DNS
Account ID & Zone ID
配置
export CF_Token=""
export CF_Account_ID=""
export CF_Zone_ID=""
生成证书
acme.sh --issue -d "example.com" --dns dns_cf --key-file /usr/certbot/example.com.key --fullchain-file /usr/certbot/example.com.pem