Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
testing ssl ruby 1.9.3
require "net/https"
require "uri"
uri = URI.parse("")
http =, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request =
response = http.request(request)
puts response.body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment