Integrating Letsencrypt with Cloudflare ON, manually. Possible?

You can setup LE on backend webserver and tweak the CF config, like I’ve done.

Here are the steps I took:

  1. Login into CF and select domain you want to work with.
  2. Select “Crypto” top menu option
  3. Under SSL select - Full
  4. Set Always use HTTPS to ON
  5. On HSTS section - Enable HSTS
    Max-Age: 3 months
    Include subdomains: Off (change as you wish - read up on it)
    Preload: Off
  6. Set to Minimum TLS Version to TLS 1.2
  7. Opportunistic Encryption: ON
  8. TLS 1.3: ON
  9. Automatic HTTPS Rewrites: On
  10. Disable Universal SSL (again read up) by doing this you are no longer using CF SSL certs and use only Certs served by your server.

These steps i’ve carried out on 4 CF hosted sites and work fine for me on an Apache setup. Will soon use same steps on Nginx and see how this goes.

Note: I made sure my apache webserver is able to provide TLS 1.2 and 1.3 support, although you can get away with just 1.2. But for best practice in getting A+ on ssl labs you need at least 2 supported SSL protocol in use, i.e. v1.2 and/or v1.3

1 Like