Class: Net::HTTP
- Inherits:
-
Object
- Object
- Net::HTTP
- Defined in:
- lib/fix_ssl.rb
Instance Method Summary collapse
Instance Method Details
#original_use_ssl= ⇒ Object
6 |
# File 'lib/fix_ssl.rb', line 6 alias_method :original_use_ssl=, :use_ssl= |
#use_ssl=(flag) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/fix_ssl.rb', line 8 def use_ssl=(flag) _ssl_dir = $OPENSSLDIR || ENV['OPENSSLDIR'] || '/usr/lib/ssl/' _ssl_dir = '/usr/lib/ssl/' if _ssl_dir.nil? || _ssl_dir.empty? self.ca_file = "#{_ssl_dir}/certs/ca-certificates.crt" self.verify_mode = OpenSSL::SSL::VERIFY_PEER self.original_use_ssl = flag end |