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.

Insert image description here

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"

reference

  1. acme description
  2. CloudFlare dns
  3. Use ACME to apply for a pan-domain name certificate and automatically renew it
  4. namecheap domain name migration DNS to cloudflare for domain name resolution

Guess you like

Origin blog.csdn.net/u010953692/article/details/132431675
Recommended