Open GoogleCodeExporter opened 8 years ago
Doug Bryant was kind enough to send me his copy of this file patched to get SSL
working. Attached is the diff (thanks again Doug!)
Original comment by bplo...@gmail.com
on 24 Apr 2009 at 2:22
Attachments:
And to get rid of the annoying "warning: peer certificate won't be verified
in this
SSL session" messages that get spewed twice per polling loop execution, add
this:
# I wrap this so I can move to a different client, or easily mock for testing
def http_request h, p, r
#return Net::HTTP.start(h, p){ |http| http.request(r) }
http = Net::HTTP.new(h, p)
http.use_ssl = true if "https" == @protocol
# Don't carp about SSL cert verification
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
return http.request(r)
end
Original comment by bplo...@gmail.com
on 24 Apr 2009 at 2:54
Original issue reported on code.google.com by
bplo...@gmail.com
on 20 Apr 2009 at 4:50