How to setup HTTPS with Laravel Homestead

Adnan Sabanovic
2 min readApr 16, 2018

--

You probably noticed that you can’t use your website-example.dev with your Chrome, as it is reporting that your website is not secure.

Here is one quick but valuable trick.

Web Hosting Recommendation

Many people have asked me about the hosting I am using. To be honest I tried different hosting accounts from shared, VPS and dedicated. In case you want some really affordable hosting I recommend Bluehost. I am also hosting some of my Laravel projects right there on this $3.95 shared account and it works great.

My recommendation for the best affordable web hosting. Click here to jump right there!

Continue …

I am using Homestead 5 and by default homestead uses nginx to server your files. If you have a website-example.dev defined in your Homestead.yaml, then if you go in /etc/nginx/ssl/you will find two files for your domain:

website-example.dev.key

website-example.dev.crt

website-example.dev.key

All you have to do is (if you are on Mac OS) is get this website website-example.dev.crtinside your Keychain Access, and set to trust this certificate.

Continue reading this EPIC post on AdnanSabanovic.

--

--

Adnan Sabanovic
Adnan Sabanovic

Written by Adnan Sabanovic

Just a tech guy involved in mastering life using mental and physical discipline. Journaling about productivity, personal development and overall growth. #Life

Responses (8)