Using Cloudflare's SSL for your website (FREE!)

August 16, 2018


Many people who have static websites/blogs would say, they don’t really need SSL for their website and I’ve said that too in past. SSL certificates are not cheap comparatively and we try to save that additional cost.

Internet Providers have been playing around with the web traffic and tampering it for a while now. Sniffing the traffic and content injection in web pages is common. These are some simple examples for why SSL is important.

Coming to the point, Cloudflare provides free SSL for your website, and it’s super-easy to configure:

  • Sign up on Cloudflare and enter your DNS. After that, they will automatically fetch all the DNS Records associated with your domain. You can cross-check from your domain provider to be sure.
  • In the next step, they will provide few (usually 2) new Nameservers (something like blah.ns.cloudflare.com)
  • You just need to replace the existing Nameservers with these new ones in your Domain provider’s dashboard.
  • Wait for DNS resolution to complete. Meanwhile, go to Cloudflare dashboard’s Crypto menu, and Turn ON Always use HTTPS option.
  • Once you see Universal SSL Status: Active Certificate in the dashboard, your website will have working SSL. (happend for me within 5 minutes; but might take upto 24 hours)


How does it work?

Cloudflare has three ways in which you can use SSL.

  • Flexible SSL: Traffic between User & Cloudflare is over HTTPS, but only HTTP between Cloudflare and your server.
  • Full SSL: If your server is configured with SSL, then the traffic is end to end over HTTPS. In my case, my website is hosted on Github Pages, which is configured with SSL, so I chose this option.
  • Full SSL (Strict): Same as Full SSL, but additionally, the connection between Cloudflare & web server is authenticated for every request as well. This needs a signed certificate from a trusted authority.

You can read more about it in Cloudflare’s official documentation.

Cloudflare also provides a lot of other useful features like Caching, Firewall to name a few.

PS: I got to know about Cloudflare’s free SSL plan today. Thank you Cloudflare.

References:

  • https://support.cloudflare.com/hc/en-us/articles/200170416
  • https://www.cloudflare.com/

Tags: SSL Security


blog comments powered by Disqus