切换ssl.com

curl -sX PATCH "https://api.cloudflare.com/client/v4/zones/你的域名区域id/ssl/universal/settings" -H "X-Auth-Email:你的邮箱" -H "X-Auth-Key:你的global api key" -H "Content-Type: application/json" --data "{\"certificate_authority\":\"ssl_com\"}"

切换谷歌

curl -sX PATCH "https://api.cloudflare.com/client/v4/zones/你的域名区域id/ssl/universal/settings" -H "X-Auth-Email:你的邮箱" -H "X-Auth-Key:你的global api key" -H "Content-Type: application/json" --data "{\"certificate_authority\":\"google\"}"

切换let's

curl -sX PATCH "https://api.cloudflare.com/client/v4/zones/你的域名区域id/ssl/universal/settings" -H "X-Auth-Email:你的邮箱" -H "X-Auth-Key:你的global api key" -H "Content-Type: application/json" --data "{\"certificate_authority\":\"lets_encrypt\"}"
  • 说明:
    1·直接在vps命令行执行
    2·域名区域id:打开你的域名,右下角区域id,复制粘贴
    3·邮箱:点击查询
    4·global api key:点击查询
    5·预期结果:

    {"result":{"enabled":true,"certificate_authority":"ssl_com"},"success":true,"errors":[],"messages"