Forum: Ruby OpenURI and not verifying self-signed certificates

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
snowblink (Guest)
on 2005-11-21 18:20
(Received via mailing list)
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
This topic is locked and can not be replied to.