Skip to content

Instantly share code, notes, and snippets.

@hendrikbeck
Created August 16, 2014 09:57
Show Gist options
  • Save hendrikbeck/caea3881e9fa698d59e7 to your computer and use it in GitHub Desktop.
Save hendrikbeck/caea3881e9fa698d59e7 to your computer and use it in GitHub Desktop.
Rails SSL for local development
# I found 2 cool links that do most of the work. I just added a few lines that I needed to do on my machine to make it work
# From http://makandracards.com/makandra/15901-howto-create-a-self-signed-certificate
openssl req -new -newkey rsa:2048 -sha1 -days 365 -nodes -x509 -keyout server.key -out server.crt
mkdir /Users/NAME/.ssl
cp server.key /Users/NAME/.ssl
cp server.crt /Users/NAME/.ssl
# From http://makandracards.com/makandra/15903-using-thin-for-development-with-ssl
echo "127.0.0.1 localhost.ssl" | sudo tee -a /etc/hosts
gem install 'thin'
# Dann wieder der Anleitung folgen, die startet am Ende den Thin-Server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment