Skip to content

Instantly share code, notes, and snippets.

@cmckni3
Created February 3, 2016 16:34
Show Gist options
  • Save cmckni3/fe1cfaa5a7cc6fb9d164 to your computer and use it in GitHub Desktop.
Save cmckni3/fe1cfaa5a7cc6fb9d164 to your computer and use it in GitHub Desktop.
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('/')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment