OpenURI and not verifying self-signed certificates

Hi,

How can I tell open-uri to not verify the certificate when I’m using
SSL?

Is there something nicer than hacking open-uri.rb?
235 #http.verify_mode = OpenSSL::SSL::VERIFY_PEER
236 http.verify_mode = OpenSSL::SSL::VERIFY_NONE

Thanks.
Jon