curl -X PATCH "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/settings/ssl" -H 'Authorization: Bearer $CF_API_TOKEN' -H 'Content-Type: application/json' -d '{"value":"full"}'

Category: Cloudflare

curl -X PATCH "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/settings/ssl" -H 'Authorization: Bearer $CF_API_TOKEN' -H 'Content-Type: application/json' -d '{"value":"full"}'

Switch the SSL mode for a zone

Sets how Cloudflare encrypts the hop to your origin: flexible (origin over HTTP), full, or full strict (origin cert must match). The value full fixes 525 handshake errors with origins that have valid but self-signed or mismatched certificates. Mode changes propagate across the edge in about 30 seconds.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.