Skip to content

Instantly share code, notes, and snippets.

@claudijd
Created June 28, 2013 14:21
Show Gist options
  • Save claudijd/5885031 to your computer and use it in GitHub Desktop.
Save claudijd/5885031 to your computer and use it in GitHub Desktop.
OpenSSL Connection Source - no verify, no cert store
require 'socket'
require 'openssl'
ssl_context = OpenSSL::SSL::SSLContext.new
tcp_client = TCPSocket.new 'server.trustwave.com', 443
ssl_client = OpenSSL::SSL::SSLSocket.new tcp_client, ssl_context
ssl_client.connect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment