-
-
Save chrise86/84fbb7930a3820e84855 to your computer and use it in GitHub Desktop.
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 am doing this because the server admin forgot to | |
# Renew their certificate! | |
prev_setting = OpenSSL::SSL.send(:remove_const, :VERIFY_PEER) | |
OpenSSL::SSL.const_set(:VERIFY_PEER, OpenSSL::SSL::VERIFY_NONE) | |
# do my connnection thang! | |
OpenSSL::SSL.send(:remove_const, :VERIFY_PEER) | |
OpenSSL::SSL.const_set(:VERIFY_PEER, prev_setting) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment