Created
August 16, 2014 09:57
-
-
Save hendrikbeck/caea3881e9fa698d59e7 to your computer and use it in GitHub Desktop.
Rails SSL for local development
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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