How to install CloudFlare’s Free SSL on Laravel Forge

  • you already have CloudFlare setup and your domain name points to it;
  • you manage your server with Laravel Forge (though the same steps should be true for any nginx server);
  1. Generate a self-signed certificate on http://www.selfsignedcertificate.com/. It’ll give you the links to 2 files (private key and certificate). Download them.
  2. In your Forge panel, copy the contents of the above files in Sites > your-site > SSL Certificates > Install Existing Certificate. Don’t forget to click “Activate” once it’s installed.
  3. In your CloudFlare panel, under Crypto > SSL (with SPDY), choose “Full” (NOT Full strict).
  • your user’s connection to the CloudFlare servers is SSL protected using CloudFlare’s SSL (so the green lock will show up);
  • CloudFlare’s connection to your server is SSL protected, thanks to your self-signed certificate (so your assets will have the proper https);

--

--

--

Creator of Backpack for Laravel & ScheduleThatEmail. I build web products - for work and for fun. www.tabacitu.com

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cristian Tăbăcitu

Cristian Tăbăcitu

Creator of Backpack for Laravel & ScheduleThatEmail. I build web products - for work and for fun. www.tabacitu.com

More from Medium

StartOf And EndOf Functions Example Of Carbon

How to Create Table Using Laravel Migration?

500 internal error Laravel

Laravel Real-Time Notifications with Pusher