Sha256: d1d36ad5ae6835f0eb63cfb00d5a1833bba21802df62f1b3467b0fcdd433eb78

Contents?: true

Size: 467 Bytes

Versions: 6

Compression:

Stored size: 467 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
certified-1.0.0 certified.rb
gss-0.0.7 vendor/bundle/ruby/1.9.1/gems/certified-0.1.2/certified.rb
gss-0.0.6 vendor/bundle/ruby/1.9.1/gems/certified-0.1.2/certified.rb
gss-0.0.5 vendor/bundle/ruby/1.9.1/gems/certified-0.1.2/certified.rb
certified-0.1.2 certified.rb
pirj-certified-0.1.2 certified.rb