Skip to content

Runbook: migrating a live site from Flexible SSL to Full (Strict)

The mode toggle is instant and reversible — the risk is that nobody ever proved the origin can terminate TLS. Certificate first, verify the hop directly, then step the mode up while watching for 525s and 526s. The sequence, with a rollback at every stage.

Moving a production zone from Flexible to Full (Strict) is safe when done in order: install a certificate on the origin, prove the origin hop works by testing it directly, then raise the mode in two steps — Full, then Full (Strict) — watching the edge between each. The toggle itself applies in seconds and rolls back just as fast, so the sequence below has an exit at every stage. What you must not do is flip straight to Full (Strict) on faith: Flexible means nobody has ever demonstrated that the origin can terminate TLS at all.

What’s happening

The SSL/TLS mode controls exactly one thing: how Cloudflare connects to your origin. If you need the full comparison of the modes, read Flexible vs Full vs Full (Strict) first — this article assumes you already know why Strict is the target and only covers getting there live.

The migration risk is scope: the mode is a zone-wide setting, so the switch changes how Cloudflare fetches every proxied hostname at once — including the ones nobody remembers, like api, staging, or an old landing page on a separate vhost. A hostname whose origin cannot answer HTTPS starts returning 525 (TLS handshake failed); one whose certificate is expired, self-signed, or missing the hostname returns 526 (invalid certificate) once Strict validation kicks in. Both are covered in depth in 525/526 handshake errors. Everything in this runbook works on Free, Pro, and Business plans; no paid add-on is required.

What to check first

  • The inventory: every DNS record in the zone with the orange cloud on. The dashboard DNS table is the source of truth — export it if the zone is large.
  • What terminates TLS at the origin for each hostname: Nginx, Apache, a load balancer, a panel-managed vhost.
  • Whether a certificate already exists. cPanel and Plesk servers usually carry a valid AutoSSL certificate already, in which case Strict may work with zero origin changes.
  • A low-traffic window and who is authorized to flip the mode back.

How to verify

Prove the origin hop before touching the dashboard, then re-check after each step.

# What does the origin serve for this hostname, and which names does it cover?
openssl s_client -connect <origin-ip>:443 -servername example.com </dev/null 2>&1 \
  | openssl x509 -noout -subject -issuer -dates -ext subjectAltName

# Simulate the strict check: does the certificate validate for the hostname?
curl -sv --resolve example.com:443:<origin-ip> https://example.com/ -o /dev/null 2>&1 \
  | grep -iE "subject:|issuer:|SSL certificate verify"

# After each mode change, watch the edge response
curl -sI https://example.com/ | head -3

One nuance: if the origin runs a Cloudflare Origin CA certificate, the curl verify line will report an error on your workstation — your machine does not trust Cloudflare’s private CA, but the Cloudflare edge does. In that case judge by the SAN list and dates from the openssl output, not by curl’s verdict.

The fix

  1. Install a certificate on the origin. Either a Cloudflare Origin CA certificate created under SSL/TLS → Origin Server → Create Certificate (free, covers example.com and *.example.com by default, valid up to 15 years), or a publicly trusted certificate you already have. Reload the web server and confirm port 443 answers.
  2. Verify every proxied hostname directly. Run the openssl check against each hostname in your inventory. Any name absent from the certificate’s SAN list is a guaranteed 526 under Strict — fix the coverage now, not after the flip.
  3. Stage with a Configuration Rule if you want extra insurance. Under Rules → Configuration Rules, create a rule matching one low-stakes hostname and set its SSL setting to Full (Strict). Configuration Rules exist on every plan with a per-plan quota. If that hostname serves cleanly for a few minutes, the origin side is proven.
  4. Move the zone to Full under SSL/TLS → Overview. This encrypts the origin hop without validating the certificate — a transition state, not a destination. Watch for 525s for a few minutes; if they appear, a hostname’s origin is not answering TLS and you flip back while you fix it.
  5. Move to Full (Strict). Watch for 526s. If one appears, the certificate on that origin is expired, self-signed, mismatched, or (for public certificates) served without its intermediate chain. Rollback is the same toggle, so there is no pressure to debug in production.
  6. Turn on Always Use HTTPS under SSL/TLS → Edge Certificates — it can no longer loop now that Flexible is gone. Consider HSTS only after the setup has been stable for a while.
  7. Lock the origin down. Restrict the origin firewall to Cloudflare’s published IP ranges and consider Authenticated Origin Pulls, so the strict TLS you just built cannot be bypassed by hitting the origin IP directly. Cloudflare’s checklist for this lives at developers.cloudflare.com/ssl/.

When this fix is wrong

If the origin genuinely cannot terminate TLS — an ancient appliance, a legacy stack nobody can patch — Full is not achievable and this runbook stalls at step 1. The honest options are a Cloudflare Tunnel from a host that can reach the appliance, or replacing the endpoint; staying on Flexible for anything that carries logins or form data is not one of them. And if TLS actually terminates on a load balancer in front of the application, run every check in this runbook against the balancer, not the app servers behind it.

Common mistakes

  • Verifying the apex, flipping to Strict, and discovering www or api was never in the certificate’s SAN list.
  • Treating Full as the finish line. Full accepts any certificate, including expired and self-signed — it encrypts without authenticating.
  • Installing an Origin CA certificate and later switching that DNS record to grey-cloud: visitors now hit the origin directly and get trust warnings, because only Cloudflare trusts that CA.
  • Expecting the edge certificate to need reissuing. The mode change never touches the browser-facing certificate.
  • Confusing Always Use HTTPS with the SSL/TLS mode — they are separate controls with separate failure modes.

Prevention

New zones should start at Full (Strict) before any production DNS points at them — retrofits like this one exist because Flexible was allowed to become the status quo. Put origin certificate expiry under monitoring (Origin CA certificates last years; Let’s Encrypt lasts 90 days), keep the proxied-hostname inventory current, and write the rollback path into the change ticket so the person on call does not have to rediscover it.

Getting end-to-end TLS right — edge, origin certificate, and the redirect chain — is standard work inside Managed Cloud Ops; book an infrastructure review if you want it verified end to end.