Skip to content

Instantly share code, notes, and snippets.

@HendrikPetertje
Created October 29, 2015 16:30
Show Gist options
  • Save HendrikPetertje/aef67cb7cfa05ee7acb6 to your computer and use it in GitHub Desktop.
Save HendrikPetertje/aef67cb7cfa05ee7acb6 to your computer and use it in GitHub Desktop.
powder with https

For everyone who wants to try https in their powder: install tunnelssl it’s tunnel but it makes sure yoyr ssl is system verified.

gem install tunnelssl

Tunnel ssl requires some form of sudo. problem being that when you run a gem in sudo all files it touches become root files. There is a handy rbenv plugin to tackle this problem:

git clone git://github.com/dcarley/rbenv-sudo.git ~/.rbenv/plugins/rbenv-sudo

open your .bashrc, .bash_profile, .zshrc or zsh_profile (for pro’s) and add

alias sudopowder='rbenv sudo tunnelssl'

If you haven't yet installed powder:

gem install powder
rbenv rehash
powder install
powder link # In a rails or pow supported project folder

Now start your powder like always:

powder start

Now start your ssl port bridger:

sudopowder

Restart your browsers (so they pick up the added keychain (for mac users))

visit https://yourfoldername.dev and enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment