Skip to content
Find file
d42e842 Jan 21, 2014
@stevegraham @pirj
21 lines (16 sloc) 467 Bytes
require 'net/https'
Net::HTTP.class_eval do
alias _use_ssl= use_ssl=
def use_ssl= boolean
self.ca_file = "#{File.dirname(__FILE__)}/certs/ca-bundle.crt"
self.verify_mode = OpenSSL::SSL::VERIFY_PEER
self._use_ssl = boolean
end
end
OpenSSL::X509::Store.class_eval do
alias _set_default_paths set_default_paths
def set_default_paths
self._set_default_paths
self.add_file "#{File.dirname(__FILE__)}/certs/ca-bundle.crt"
end
end
Something went wrong with that request. Please try again.