Created
December 11, 2014 13:16
-
-
Save jage/fb8844769e95d3bc60e7 to your computer and use it in GitHub Desktop.
Test TLSv1.1 against Ori
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'openssl' | |
require 'socket' | |
context = OpenSSL::SSL::SSLContext.new | |
context.ssl_version = :TLSv1_1 | |
client_socket = TCPSocket.new 'ori', 5671 | |
ssl_client = OpenSSL::SSL::SSLSocket.new client_socket, context | |
ssl_client.connect | |
ssl_client.puts "hello server!" | |
puts ssl_client.gets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment