class

OpenSSL::SSL::Socket::Client

Inherits OpenSSL::SSL::Socket < IO::Buffered < IO < Reference < Object

Constructors

new(io, context : Context::Client = Context::Client.new, sync_close : Bool = false, hostname : String | Nil = nil)
Source

Class methods

open(io, context : Context::Client = Context::Client.new, sync_close : Bool = false, hostname : String | Nil = nil, &)
Source

Instance methods

peer_certificate

Returns the OpenSSL::X509::Certificate the peer presented.

Source