enum

Beryl::Certificates::FailureReason

Inherits Enum < Comparable < Value < Object

Why a chain was refused. VerificationFailed#reason carries one.

Constants

MalformedLeaf = 0

The leaf itself could not be read.

LeafExpiredOrNotYetValid = 1

The leaf is outside its validity period at the validation time.

LeafProfileViolation = 2

The leaf breaks the profile: a CA certificate in leaf position, an unknown critical extension, a missing subject alternative name.

UsageNotAllowed = 3

The leaf's extended key usage does not allow the purpose asked for.

NameMismatch = 4

No subject alternative name of the leaf matches the name asked for.

NoTrustedPath = 5

No path from the leaf reaches a trust anchor that satisfies every check; VerificationFailed#message names the last check that failed.

BudgetExceeded = 6

Path building stopped at its budget (candidates tried, signatures checked, name comparisons, processor time).

Revoked = 7

A CRL handed in revokes a certificate of the path, or a CRL that covers the path cannot be used.

TooManyCertificates = 8

More certificates, or more bytes, were presented than the limits allow.

SignatureAlgorithmRefused = 9

A certificate of the chain is signed with SHA-1 or MD5, which Beryl refuses by name before checking the signature (RFC 9155, RFC 6151).

Instance methods

budget_exceeded?

Returns true if this enum value equals BudgetExceeded

Source
leaf_expired_or_not_yet_valid?

Returns true if this enum value equals LeafExpiredOrNotYetValid

Source
leaf_profile_violation?

Returns true if this enum value equals LeafProfileViolation

Source
malformed_leaf?

Returns true if this enum value equals MalformedLeaf

Source
name_mismatch?

Returns true if this enum value equals NameMismatch

Source
no_trusted_path?

Returns true if this enum value equals NoTrustedPath

Source
revoked?

Returns true if this enum value equals Revoked

Source
signature_algorithm_refused?

Returns true if this enum value equals SignatureAlgorithmRefused

Source
too_many_certificates?

Returns true if this enum value equals TooManyCertificates

Source
usage_not_allowed?

Returns true if this enum value equals UsageNotAllowed

Source