cmckni3
2/3/2016 - 4:34 PM

Ruby script to see if ruby has been compiled with openssl

Ruby script to see if ruby has been compiled with openssl

#!/usr/bin/env ruby

require 'net/https'
https = Net::HTTP.new('encrypted.google.com', 443)
https.use_ssl = true
https.verify_mode = OpenSSL::SSL::VERIFY_PEER
https.request_get('/')