# OpenURI and not verifying self-signed certificates

**URL:** <https://www.ruby-forum.com/t/openuri-and-not-verifying-self-signed-certificates/48507>\
**Category:** Ruby\
**Created:** [November 21, 2005, 5:20pm UTC](https://www.ruby-forum.com/t/openuri-and-not-verifying-self-signed-certificates/48507 "2005-11-21T17:20:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snowblink](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ce7236/32.png) [@snowblink](https://www.ruby-forum.com/u/snowblink)\
**Post date:** [November 21, 2005, 5:20pm UTC](https://www.ruby-forum.com/t/openuri-and-not-verifying-self-signed-certificates/48507/1 "2005-11-21T17:20:41Z")

</div>

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
