ACME protocol to apply for a pan-domain name certificate
Register domain name namecheap
Migrate DNS to cloudflare
Create API Token Area Select Domain Name
Copy this token and the token will only appear once.
Generate certificate
export CF_Token="API令牌"
acme.sh --issue --dns dns_cf -d 域名 -d *.域名 --keylength ec-256
Install certificate
acme.sh --install-cert -d 域名 \
--key-file /etc/nginx/conf.d/ssl/域名.key \
--fullchain-file /etc/nginx/conf.d/ssl/fullchain.crt \
--reloadcmd "service nginx force-reload"