struct
Crabbit::TLSConfig
- Crabbit::TLSConfig
- Struct
- Value
- Object
Overview
TLS settings shared by Stream connections.
Defined in:
crabbit/configuration.crConstructors
-
.new(context : OpenSSL::SSL::Context::Client = OpenSSL::SSL::Context::Client.new, verify_hostname : Bool = true)
Creates TLS settings.
Instance Method Summary
-
#context : OpenSSL::SSL::Context::Client
Returns the OpenSSL client context used for certificate verification and optional client certificates.
-
#verify_hostname : Bool
Returns whether the advertised endpoint hostname is verified.
Constructor Detail
def self.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.
Instance Method Detail
def context : OpenSSL::SSL::Context::Client
#
Returns the OpenSSL client context used for certificate verification and optional client certificates.