How to make localhost secured(SSL) 【Ruby on Rails】

Tomoharu Tsutsumi
1 min readSep 27, 2020

--

I wanted to implement Facebook login for my private product. However, we have to make localhost secured when we implement Facebook login in a local environment. I’m going to introduce how to do that.

ngrok

I used ngrok(https://ngrok.com/). We can make a local product public by using this, additionally, the local product becomes secured by SSL.

How to use ngrok

  1. $brew cask install ngrok
  2. $ngrok http 3000

Attention!

ngrok’s session deletes automatically in 7 hours. We have to reconnect again every time. It is a little hassle.

Started LinkedIn as well!

https://www.linkedin.com/in/tomoharu-tsutsumi-56051a126/

--

--

Tomoharu Tsutsumi

Senior Software Engineer Senior Software Engineer at an industry-leading startup( Ruby | JavaScript | Go | Rails | React | Redux | Gin)