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

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