Heroku SSL Revisited (2025 Edition)

10-Apr-2025 58
Last year we published Cloudflare + Heroku SSL / Certificates Explained, in which Jon Sully masterfully walked through exactly how SSL works when using reverse-proxy CDN like Cloudflare, and how to set it up correctly with Heroku. Jon’s (and my) advice at the time was: Add your domain to Cloudflare, enable proxying (orange cloud). Generate an Origin Certificate for your app in Cloudflare’s dashboard. Add that origin cert to the Heroku app as “Custom SSL”. Set your Cloudflare SSL to “Full (strict)”. This setup still—without a doubt—works great. But something kept nagging at me. Heroku provides automatic SSL management (via Let’s Encrypt) for free, and I feel like there should be a Good Reason why we advise against using that golden path.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle