struct

Crabbit::TLSConfig

Inherits Struct < Value < Object

TLS settings shared by Stream connections.

Constructors

new(context : OpenSSL::SSL::Context::Client = OpenSSL::SSL::Context::Client.new, verify_hostname : Bool = true)

Creates TLS settings.

Hostname verification should only be disabled in controlled development environments. Configure custom trust roots and client certificates on context before opening the environment.

Source

Instance methods

context

Returns the OpenSSL client context used for certificate verification and optional client certificates.

Source
verify_hostname

Returns whether the advertised endpoint hostname is verified.

Source