RE: annoying ssl warning messages running reposman ยป suppress_ssl_warning.diff
| 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(
|
||