Created
October 5, 2011 17:57
-
-
Save andruby/1265160 to your computer and use it in GitHub Desktop.
Force disable net/http ssl certificate validation
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
| # Dirty monkey patch to globally disable certificate validation | |
| # YOU SHOULD NEVER USE THIS | |
| # Except when testing/debugging with self signed certificates | |
| require 'net/http' | |
| module OpenSSL | |
| module SSL | |
| VERIFY_PEER = VERIFY_NONE | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment