How to setup Full SSL with Cloudflare

By default, Cloudflare uses a system called “Flexible SSL”. In this system, Cloudflare secures the connection between your visitors and Cloudflare, but not the connection between Cloudflare and your website. Not only is this less secure, some websites (notably WordPress) have trouble detecting whether HTTPS is in use, causing all sorts of issues.

The best way to resolve this is by using Full SSL in Cloudflare. This way, the connection between Cloudflare and your website is encrypted, and your website can easily detect that HTTPS is being used.

This guide describes how to set this up.

Get a Self Signed SSL certificate

To use Full SSL, you’ll need an SSL certificate installed on your hosting account. Any SSL certificate will do, as long as it is:

  • Valid for your domain name.
  • Not expired.

InfinityFree has a default SSL, self-signed certificate that is applied to all domains, which is sufficient for Cloudflare.

Set Cloudflare to Full SSL mode

With the certificate installed, it’s time to configure Cloudflare.

To do so, login to the Cloudflare Dashboard, go to your domain name, then go to “SSL/TLS” → “Overview” and set the encryption mode to Full.

image

And for the most part, this is all you need to start using Full SSL!

Configure your website to use HTTPS

If you are switching an existing website to HTTPS, you may need to make some changes to your website to make it work.

You’ll need to make sure that all URLs on your website use https:// instead of http://.

The process for this varies depending how you’ve built your website. Sometimes, you don’t need to do anything at all. But if you’re using an existing script or CMS, there is usually a setting you’ll need to edit, either in a configuration file or a settings page. If you’ve built your website without a CMS, you may need to manually edit the code of your site.

For WordPress, you’ll need to change the Website URL setting, which can be found in the WordPress admin interface in Settings → General.

After changing this setting, you should check your site to make sure it still works.

Enable Always Use HTTPS in Cloudflare

Once you’ve configured your website to work with HTTPS, you should force everyone to start using it.

The best way to do this is to enable the setting “Always Use HTTPS” in Cloudflare. You can find it under “SSL/TLS” → “Edge Certificates”. Enabling this setting will make everyone always use HTTPS on your site.

image

While you’re on that page, you should also make sure that “Automatic HTTPS Rewrites” is turned OFF. This setting is generally not necessary, can hide other configuration issues and cause weird errors.

image

Final Notes

Can I use Full (strict) SSL mode?

Yes, you can!

To use “Full (strict)” mode, you need a certificate that Cloudflare can verify is actually yours. A self signed certificate doesn’t work here.

To use Full (strict) SSL on free hosting, you’ll need a certificate provided by a trusted authority. You can get a free, trusted SSL certificate through our client area and install it on your account. Then, you can use Full (strict) mode.

However, you need to manually renew this certificate every three months, unlike with a self signed certificate. So it’s easiest to use “Full” (not strict) SSL mode instead.

Premium hosting integrates Let’s Encrypt directly in the control panel, so free SSL certificates are automatically renewed, so you can use “Full (strict)” mode without the hassle.

Can I use Cloudflare Origin Certificates?

Another way to use “Full (strict)” SSL mode is to use an Origin Certificate from Cloudflare. These are “self signed” certificates signed by Cloudflare. Cloudflare trusts these certificates, so they can be used for strict SSL

However, the free hosting control panel performs additional validation on SSL certificates, and Cloudflare’s certificates do not pass these checks.

13 Likes
DNS Settings page
SSL certificate activation
After switching from host This site can’t provide a secure connection
SSL Certificates Deletion Problem
Https shows wrong issuer?
Ssl
Ssl
SUb domian admin panel not loading after using cloudfare
How can i make SSL and the domain is linked to cloudflare
Something wrong when i use https
A Full Guide To Cloudflare
ERR_TOO_MANY_REDIRECTS Error on www.matheusliziardi.com.br
Started using cloudflare but our website is not coming up
SSL Certificate Error
SSL expiration date
SSL expiration date
Issue with website #2
This page isn’t working....redirected you too many times
SSl Certificate issue with Google Merchant Center
ERR_SSL_PROTOCOL_ERROR
Error 404 from freeprohosting
I wanna switch SSL
Incomplete certificate chain. Certificate is not trusted
The page isn’t redirecting properly
Subdomain works but main domain does not
WordPress Website Redirection Issue (ERR_TOO_MANY_REDIRECTS
CloudFlare nameservers
This page isn’t working
SSL not working
Reconnect domain after add the site to cloudflare
How to use the CDN service provided by Cloudflare on my own domain?
MyBB ERROR (44)
Http to https
After switching from host This site can’t provide a secure connection
Wordpress not working right!
Https
All in one wp migration error
WordPress help, Please
WordPress problems in hosting
Cannot Generate SSL Certificate
Parked Domain
Alter DNS for TXT
10000 forum users celebration - special event
Information
10000 forum users celebration - special event
This site can’t provide a secure connection
SSL renew or install automatically?
How to connect cloudflare
Nooby question about parked domains, ssl and cloudflare
Https Cloudflare lost wp-admin access
Problem accessing the website
Updating failed. You are probably offline
WordPress Error
Cloudflare subdomain
How do i connect a clouldflare website to infinityfree
Website not display
Website not display
Is it possible to do observatory speed tests in Cloudflare? I keep getting Error 525
Ssl issue!
Site not loading, "too many redirects"
Elementor dont chargue
Cant access Worddpress Dashboard
"Updating failed" error
Self Signed (not trusted)
The certificate uploaded is NOT for the domain name full-origami-guide.online (R3 was seen)
CORS Policy Annoying Errors
Wordpress dashboard looks messed up
I'm having trouble running the site
Unable to setup my domain Properly
A Full Guide To Cloudflare
This page isn’t working
How to get Cloudflare Free SSL with InfinityFree Hosting
Help me, please! My site is still insecure because I don't have a valid certificate on my server
Invalid response in a curl request
How to make Cloudflare Flexible SSL work with WordPress
Err_too_many_redirects
On my domain not my page
Wordpress not show/display some images
Infinity Connect Cloudflare
SSL certificate & cloudflare
Unable to create order successfully for my domain
Let's Encrypt Error: Conflicting TXT records were found
My Domain is pointed to Infinityfree DNS but still not fetching
CNAME Setup but conflicting TXT files after all TXT files deleted from Cloudflare
SSL no CNAME found
SSL no CNAME found
SSL no CNAME found
SSL Certificate is invalid or missing intermediate (bundle) certificate
This server's certificate chain is incomplete
Website not display
Name servers
Redirect too many times problem
Cname for my website
I accidendtly deleted htdocs
Cloudflare DNS with InfinityFree
Ssl
ERR_TOO_MANY_REDIRECTS after install Wordpress

Awesome pictures!

5 Likes

great tutorial :smiley:

1 Like

I just followed this and everything setup fine, Thank you :+1: :+1: :+1: :+1: :+1:

Just a heads up, the link in the very first part of the post is incorrect

the link should be /sslCertificates not /ssls

Thanks

5 Likes

Fixed :slight_smile:

2 Likes

Or Admin could just set up a redirect!

1 Like

This is exactly what I was looking for. After trying to fix issues with Cloudflare’s flexible SSL. 100% of my issue are gone now.

3 Likes

A post was split to a new topic: Https://forum.infinityfree.com/t/a-full-guide-to-cloudflare/44451/