class

Beryl::TLS::WebPkiVerifier

Inherits Beryl::TLS::CertificateVerifier < Reference < Object

RFC 5280 path validation to a trust store (B4's ChainVerification), the serverAuth purpose, the digitalSignature key usage when present, and the RFC 9525 name or IP address check.

Constructors

new(trust_store : Certificates::TrustStore = Certificates::TrustStore.mozilla, *, time_source : -> Time = -> do Time.utc end)
Source

Instance methods

trust_store
Source
verify_chain(chain : Array(Certificates::Certificate), hostname : String | Nil) : Nil

Raises CertificateRejected with the alert to send when chain (leaf first) is not trusted for hostname.

Source