class

Beryl::TLS::Socket::Client

Inherits Beryl::TLS::Socket < IO::Buffered < IO < Reference < Object

The client end. The handshake runs in the constructor.

Constructors

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

hostname is the name (or IP address) the certificate must match and, for a name, the SNI sent.

Source

Class methods

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

Instance methods

context
Source
hostname
Source
peer_certificate

The server's leaf certificate.

Source
peer_certificate_chain

The server's chain, as it sent it.

Source