Cardboardrocket_header Holes

Net::HTTP: Ignoring SSL errors on self signed certificates

Posted on June 03, 2008 at 09:47 AM by Alex Wolfe

require 'net/https'
http = Net::HTTP.new('yourhost.com', '443')
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
http.get('/path').body
Hierarchy: previous

Comments

There are 0 comments on this post—Post yours →

Post a comment

Required fields in bold.

 

All content ©2006-2008 Alex Wolfe, all rights reserved, back to top ↩