为什么要切换Cloudflare边缘证书?

  1. Let’s Encrypt证书只有3个月而且验证慢

1. 禁用通用ssl删除原先证书

image-1661699048719

2. 获取API

image-1661699150749
image-1661699266537

3. 执行如下命令

curl -X PATCH "https://api.cloudflare.com/client/v4/zones/区域ID/ssl/universal/settings" \
     -H "Content-Type: application/json" \
     -H "X-Auth-Email: 账户邮箱" \
     -H "X-Auth-Key: Global API Key密钥" \
     --data '{"certificate_authority": "digicert"}'     

certificate_authority参数可为"digicert",“google”,“lets_encrypt”,“sectigo”,sectigo会提示无权限