SQLTerminal.app
now available

XPath.app
now available
Want fresh tech tips in your inbox?

Turn Off SSL Verification In Ruby

       

The following code will disable SSL verification when using Open SSL.

OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE

It is probably not a good idea to do this in production. But if you are just testing on your development machine it might come in handy.

You can add this to your Rails project in development environment like so...

# Add to config/application.rb
if Rails.env.development?
    OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
end
Tagged w/ #rails #security #open ssl #debugging

Apps I've Built

XPath Expression Editor
Practice and improve your XPath skills with XPath Editor
Click to buy on the App Store
Photo Location Changer
Easily change the location on your photos and videos
Click here for more info about the app
Photo Date Changer
Easily change the dates and times on your photos and videos
Click here for more info about the app
VocabReminder
English dictionary with notifications so you won't forget what you're studying!
Click here for more info about the app
VocabQuiz
The app that quizzes and scores you on your vocabulary!
Click here for more info about the app