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)
require 'find'
require 'etc'
class Net::HTTP
alias_method :old_initialize, :initialize
def initialize(*args)
old_initialize(*args)
@ssl_context = OpenSSL::SSL::SSLContext.new
@ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
end
end
Version = "1.0"
opts = GetoptLong.new(
    (1-1/1)