Beryl::TLS::Context::Client
Inherits Beryl::TLS::Context < Reference < Object
Client settings.
context = Beryl::TLS::Context::Client.new # Mozilla roots, verify the name
socket = Beryl::TLS::Socket::Client.new(tcp_socket, context, hostname: "example.com")
Constructors
A client that skips certificate verification, as
OpenSSL::SSL::Context::Client.insecure.
Instance methods
Trusts the certificates in the PEM file at path instead of the
Mozilla roots, as OpenSSL::SSL::Context#ca_certificates=.
Reads the PEM certificate chain (leaf first) the client presents
when a server asks for a certificate, as
OpenSSL::SSL::Context#certificate_chain=.
The verifier the handshake uses: set explicitly, or chosen from
verify_mode and trust_store.
The chain and key the client presents when a server sends a
CertificateRequest, or nil when none is configured (the client
then answers with an empty Certificate). Raises Error when only
the chain or only the key was set.
Whether the client uses middlebox compatibility mode (RFC 9846 Appendix D.4): a session id and a change_cipher_spec record.
Whether the client uses middlebox compatibility mode (RFC 9846 Appendix D.4): a session id and a change_cipher_spec record.
The signature schemes accepted in CertificateVerify, in order.
Reads the PEM private key of the client certificate at path
(PKCS #8, SEC 1 or PKCS #1), as OpenSSL::SSL::Context#private_key=.