DEV Community

Discussion on: Really easy way to use HTTPS on localhost

Collapse
andy profile image
Andy Zhao (he/him)

Hope it works well with Rails. I have had so much trouble trying to a local HTTPS server running with Rails :( I almost always end up using ngrok.

Collapse
thorstenspringhart profile image
Thorsten Springhart • Edited on

Works fine with rails. After creating / installing your certificate as described in the article, start your rails server via rails s -b 'ssl://localhost:3000?key=./localhost-key.pem&cert=./localhost.pem'

Collapse
rhymes profile image
rhymes Author

Let me know, I haven't tried :)