Skip to main content

How to Select the Correct Cloudflare SSL/TLS Encryption Mode

This article explains how to select the appropriate SSL/TLS encryption mode within the Cloudflare dashboard. This configuration ensures that the connection between the visitor, Cloudflare, and your origin server is secured correctly.

This article explains how to select the appropriate SSL/TLS encryption mode within the Cloudflare dashboard. This configuration ensures that the connection between the visitor, Cloudflare, and your origin server is secured correctly.

Important: Choosing the incorrect encryption mode can result in "Too many redirects" errors or a failure to establish a secure connection to your website.

Before you begin

You will need:

  • A Cloudflare account

  • A domain or subdomain added to Cloudflare

  • Access to your origin server's configuration (if you are not using a full SSL certificate provided by Cloudflare)

Selecting the SSL/TLS Encryption Mode

The SSL/TLS encryption mode determines how Cloudflare handles the connection between its edge servers and your origin server.

  1. Log in to the Cloudflare dashboard.

  2. Select the domain you wish to configure.

  3. In the sidebar, select SSL/TLS > Overview.

  4. Locate the Overview tab and find the SSL/TLS encryption mode section.

  5. Select the appropriate mode from the dropdown menu:

    • Flexible: Cloudflare provides an SSL certificate for the connection between the visitor and Cloudflare, but the connection between Cloudflare and your origin server is unencrypted. Use this only if your origin server does not support SSL.

    • Full: Cloudflare provides an SSL certificate for the visitor-to-Cloudflare connection, and your origin server has an SSL certificate installed. However, the certificate on your origin server does not need to be signed by a trusted Certificate Authority (CA).

    • Full (Strict): Cloudflare provides an SSL certificate for the visitor-to-Cloudflare connection, and your origin server has a certificate signed by a trusted CA. This is the recommended mode for production websites.

How to choose the right mode

The correct selection depends on the certificate status of your origin server:

  • Use Full (Strict) if you have a valid, CA-signed certificate installed on your origin server (such as a Let's Encrypt certificate or a certificate provided by your host).

  • Use Full if you have a self-signed certificate on your origin server or if your server does not require a CA-signed certificate to function.

  • Use Flexible only if your origin server does not have an SSL certificate installed at all.

Fix a Redirect Loop Caused by Cloudflare Flexible SSL

If you select Flexible mode but your origin server is configured to redirect all HTTP traffic to HTTPS, a "Too many redirects" error will occur.

  1. Check your origin server configuration to see if it forces HTTPS.

  2. If your server forces HTTPS, you must change your Cloudflare SSL/TLS mode to Full or Full (Strict).

  3. Once changed, the redirect loop will resolve because Cloudflare will no longer attempt to connect to your server over unencrypted HTTP.

Limitations

  • Flexible mode is not recommended for production environments as the connection between Cloudflare and your server is not encrypted.

  • If you use Full (Strict), Cloudflare will refuse to connect to your origin server if the certificate is expired, self-signed, or issued for a different domain.

Did this answer your question?