Project

General

Profile

RE: annoying ssl warning messages running reposman ยป suppress_ssl_warning.diff

thanks to http://www.5dollarwhitebox.org/drupal/node/64 - Pablo Lerina, 2008-11-20 16:27

View differences:

reposman.rb (working copy)
59 59
require 'find'
60 60
require 'etc'
61 61

  
62
class Net::HTTP
63
  alias_method :old_initialize, :initialize
64
  def initialize(*args)
65
    old_initialize(*args)
66
    @ssl_context = OpenSSL::SSL::SSLContext.new
67
    @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
68
  end
69
end
70

  
62 71
Version = "1.0"
63 72

  
64 73
opts = GetoptLong.new(
    (1-1/1)