Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby CoffeeScript JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
todo-after initial commit
todo-before initial commit initial commit

RailsCasts Episode #357: Adding SSL (pro)

Requires Ruby 1.9.2 or higher.

Commands used in rails console

curl | sh
cd ~/.pow
ln -s ~/code/todo .
brew install nginx
cd /usr/local/etc/nginx
openssl req -new -nodes -keyout server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
mate nginx.conf
mate ~/.powconfig
launchctl stop cx.pow.powd
ENABLE_HTTPS=yes rake middleware
touch tmp/restart.txt
cat >
chmod 400 *.key *.crt
sudo chown root *.key *.crt
Something went wrong with that request. Please try again.