Class: HTTPClient::SSLSocketWrap

Inherits:
Object
  • Object
show all
Defined in:
lib/mypki/adapters/httpclient.rb

Instance Method Summary collapse

Instance Method Details

#create_openssl_socket(socket) ⇒ Object



6
7
8
9
10
# File 'lib/mypki/adapters/httpclient.rb', line 6

def create_openssl_socket socket
  context = MyPKI::Context.new
  @context.set_context(context)
  ssl_socket = OpenSSL::SSL::SSLSocket.new(socket, context)
end