Beryl::TLS::Context::Server
Inherits Beryl::TLS::Context < Reference < Object
Server settings.
context = Beryl::TLS::Context::Server.new
context.certificate_chain = "chain.pem"
context.private_key = "server.key"
context.alpn_protocols = ["h2", "http/1.1"]
Constants
The most tickets a server sends after one handshake.
Constructors
Instance methods
Reads the PEM certificate chain (leaf first) at path.
Trusts the certificates in the PEM file at path to issue client
certificates, as OpenSSL::SSL::Context#ca_certificates= does on a
server.
The verifier client chains go through: set explicitly, or a
ClientCertificateVerifier over client_trust_store. Raises an
Error when neither is set.
The roots client chains are verified to. Never defaults to a public root set: a server that asks for client certificates names the authorities it trusts to issue them.
Whether the server asks for a client certificate, and whether one is
required. ClientVerifyMode::None (the default) sends no
CertificateRequest.
context.client_verify_mode = Beryl::TLS::ClientVerifyMode::Required
context.client_ca_certificates = "clients-ca.pem"
Whether the server asks for a client certificate, and whether one is
required. ClientVerifyMode::None (the default) sends no
CertificateRequest.
context.client_verify_mode = Beryl::TLS::ClientVerifyMode::Required
context.client_ca_certificates = "clients-ca.pem"
The most bytes of distinguished names a CertificateRequest lists in certificate_authorities (RFC 9846 §4.2.4). A client trust store whose subject names take more is not listed, and the client picks its certificate without the hint.
The most bytes of distinguished names a CertificateRequest lists in certificate_authorities (RFC 9846 §4.2.4). A client trust store whose subject names take more is not listed, and the client picks its certificate without the hint.
Reads the PEM private key at path (PKCS #8, SEC 1 or PKCS #1).
Sets how many tickets the server sends, from 0 (none) to
LARGEST_SESSION_TICKET_COUNT.
The 32-byte key session tickets are sealed under. Random per context; set the same key on several processes to let them resume each other's sessions.
The ticket lifetime the server states (and enforces).
VerifyMode::Peer when the server asks for a client certificate,
else VerifyMode::None.
Sets the client certificate mode as OpenSSL::SSL::Context::Server
takes it: VerifyMode::Peer requires a client certificate
(ClientVerifyMode::Required) and VerifyMode::None asks for none.