enum

Beryl::TLS::ClientVerifyMode

Inherits Enum < Comparable < Value < Object

Whether a server asks the client for a certificate (RFC 9846 §4.3.2), and what it does when the client sends none. Set through Context::Server#client_verify_mode=, or Context::Server#verify_mode= as OpenSSL::SSL::Context::Server takes it.

Constants

None = 0

No CertificateRequest is sent (the default).

Optional = 1

A CertificateRequest is sent. A chain the client sends is verified and its CertificateVerify checked; an empty Certificate is accepted and the connection has no peer certificate.

Required = 2

A CertificateRequest is sent, and an empty Certificate ends the handshake with the certificate_required alert (§4.4.2.4).

Instance methods

none?

Returns true if this enum value equals None

Source
optional?

Returns true if this enum value equals Optional

Source
requests_certificate?

Returns whether the server sends a CertificateRequest.

Source
required?

Returns true if this enum value equals Required

Source