The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

Laravel Forge with Namecheap SSL

Published on by

Laravel Forge with Namecheap SSL image

Laravel Forge makes setting up and activating an SSL super easy. In fact I was able to setup a new SSL certificate in less than 5 minutes. Here are the basic instructions for setting it up in an ideal world:

  • Login to forge
  • Visit the ssl tab for your domain
  • Generate signing request
  • Click “view CSR” and copy it
  • Buy a new SSL cert
  • Plug-in the key and activate

With my limited knowledge of setting up an SSL I missed an important step with the vendor and had to spend a lot of time tracking down the issue.

Namecheap SSL with Forge

Saturday night I decided to get an SSL cert for Laravel News. After the family went to bed I started researching various vendors and finally settled on Namecheap. I’ve heard good things about the company before and the pricing was hard to beat. They offer a very basic single domain cert named PositiveSSL, which is just $9 a year.

That seemed like a good deal for my needs. This site is just content and I’m not selling anything directly. So no need to go over board, right?

I purchased the cert, and seconds later received the email with all the “stuff” I needed. Included in the email was a huge warning:

We strongly recommend that you “click here” for instructions to ensure that your certificate is installed and your webserver is configured correctly.

Just as my luck would have it the “click here” actually went nowhere. Next I noticed at the bottom of the email it included a certificate for copy and pasting. I wrongly assumed I needed to plug this into Forge. When visiting the site in the browser I was getting SSL errors related to a broken SSL chain.

Instead you have to manually concatenate all the files they attached in the email. Running this is easy but it’s not outlined clearly in their documentation.

Generate a cert File

Here is how to get the proper SSL cert file.

Extract the zip included in the email and then cd into the directory and run:

cat YOURDOMAIN_com.crt COMODORSADomainValidationSecureServerCA.crt COMODORSAAddTrustCA.crt AddTrustExternalCARoot.crt > bundle.crt

Or you can open all these individually and copy and paste them into a new bundle.crt file.

Finally copy and paste the bundle.crt content into Laravel Forge and hit activate. Everything should then be all setup and running.

Eric L. Barnes photo

Eric is the creator of Laravel News and has been covering Laravel since 2012.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.

image
Tinkerwell

Enjoy coding and debugging in an editor designed for fast feedback and quick iterations. It's like a shell for your application – but with multi-line editing, code completion, and more.

Visit Tinkerwell
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $3200/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Get expert guidance in a few days with a Laravel code review logo

Get expert guidance in a few days with a Laravel code review

Expert code review! Get clear, practical feedback from two Laravel devs with 10+ years of experience helping teams build better apps.

Get expert guidance in a few days with a Laravel code review
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm
Laravel Cloud logo

Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Cloud
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit

The latest

View all →
Filament through the years image

Filament through the years

Read article
Boost Guidelines & Skills Added in Inertia v2.3.16 image

Boost Guidelines & Skills Added in Inertia v2.3.16

Read article
Laravel Launches an Open Directory of AI Agent Skills for Laravel and PHP image

Laravel Launches an Open Directory of AI Agent Skills for Laravel and PHP

Read article
Filament turns five in style! image

Filament turns five in style!

Read article
Cache Concurrency Limiting in Laravel 12.53.0 image

Cache Concurrency Limiting in Laravel 12.53.0

Read article
Stop Failing APIs from Killing Your Queue — Fuse for Laravel image

Stop Failing APIs from Killing Your Queue — Fuse for Laravel

Read article