Try Depot: Bring ultra-fast, remote Docker builds directly to your Laravel workflow

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
SerpApi

The Web Search API for Your LLM and AI Applications

Visit SerpApi
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 →
Debugbar releases v4.2.0 and add a new Boost skill image

Debugbar releases v4.2.0 and add a new Boost skill

Read article
New Expressive Model Attributes in Laravel 13.2.0 image

New Expressive Model Attributes in Laravel 13.2.0

Read article
Inertia.js v3.0.0 Is Here with Optimistic Updates, useHttp, and More image

Inertia.js v3.0.0 Is Here with Optimistic Updates, useHttp, and More

Read article
Laravel Boost v2.4.0 Adds Security Audits and a Laravel Best Practices Skill image

Laravel Boost v2.4.0 Adds Security Audits and a Laravel Best Practices Skill

Read article
Building Transaction-Safe Multi-Document Operations in Laravel image

Building Transaction-Safe Multi-Document Operations in Laravel

Read article
Ship AI with Laravel: Building Your First Agent with Laravel 13's AI SDK image

Ship AI with Laravel: Building Your First Agent with Laravel 13's AI SDK

Read article