Setting up SSL on Laravel 4 on an Elastic Beanstalk server is tricky, there are a couple of land mines to avoid, which took me a day of coding to find and resolve.
This guide will help you through the process, and will remind me when I next have the problem and am searching for the solution – you’re welcome future me!
- Apply for your secure certificate
- Create singlessl.config file in your .ebextensions folder
- Copy in your certificates
- Teach Laravel how to identify a secure connection (It’s not as simple as it sounds)
- Update all internal links to https