Skip to content

Instantly share code, notes, and snippets.

@matDobek
matDobek / gist:77cee8acfa1c0b7e829e
Created December 3, 2015 13:53 — forked from trcarden/gist:3295935
Rails 3.2.7 SSL Localhost (no red warnings, no apache config)
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
grep -rl "SEARCHED_PHRASE" spec/ | xargs sed -i "" "s/SEARCHED_PHRASE/REPLACE/g"
File.open('NAME', 'w') { |file| file.write(JSON.pretty_generate(STRING)) }