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