#[non_exhaustive]pub enum X509ChainError {
Show 19 variants
Policy(PolicyViolation),
Provider(ProviderError),
InvalidDepth,
InvalidDer {
kind: &'static str,
message: String,
},
DuplicateExtension {
position: usize,
oid: String,
},
UntrustedRoot,
DepthExceeded(usize),
CertificateNotValid(usize),
IssuerNotCa(usize),
PathLengthExceeded {
position: usize,
limit: u32,
},
NameConstraintViolation {
position: usize,
constraining_position: usize,
},
UnsupportedCriticalExtension {
position: usize,
oid: String,
},
InvalidNameConstraints {
position: usize,
},
InvalidKeyUsage {
position: usize,
required: &'static str,
},
InvalidSignature(usize),
KeyPolicy {
position: usize,
source: PolicyViolation,
},
UnsupportedSignatureAlgorithm {
oid: String,
},
InvalidCrl(usize),
Revoked(usize),
}Expand description
Certificate-chain validation failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Policy(PolicyViolation)
The operation does not permit this certificate or CRL signature method.
Provider(ProviderError)
The selected cryptographic provider rejected path authentication.
InvalidDepth
The configured path limit cannot contain a certificate.
InvalidDer
A certificate or CRL is malformed DER.
DuplicateExtension
A certificate repeats an extension OID, which RFC 5280 forbids.
Fields
UntrustedRoot
The ordered embedded path cannot be completed to a configured anchor.
DepthExceeded(usize)
The path contains more certificates than allowed.
CertificateNotValid(usize)
A certificate is outside its validity period.
IssuerNotCa(usize)
An issuer certificate is not authorized to issue certificates.
PathLengthExceeded
A CA path-length constraint is violated.
Fields
NameConstraintViolation
A subordinate certificate is outside a CA’s permitted name space.
Fields
UnsupportedCriticalExtension
A critical certificate extension is not implemented by path validation.
Fields
InvalidNameConstraints
NameConstraints is not a critical CA extension as required by RFC 5280.
InvalidKeyUsage
A certificate key usage extension forbids the required operation.
Fields
InvalidSignature(usize)
A certificate signature does not verify under its issuer key.
KeyPolicy
An issuer key violates the active key-strength policy.
Fields
source: PolicyViolationTyped key-policy rejection.
UnsupportedSignatureAlgorithm
The certificate or CRL declares an algorithm this build cannot verify.
InvalidCrl(usize)
A CRL is not valid for the selected verification time or issuer.
Revoked(usize)
A path certificate was revoked by an applicable CRL.
Trait Implementations§
Source§impl Clone for X509ChainError
impl Clone for X509ChainError
Source§impl Debug for X509ChainError
impl Debug for X509ChainError
Source§impl Display for X509ChainError
impl Display for X509ChainError
impl Eq for X509ChainError
Source§impl Error for X509ChainError
impl Error for X509ChainError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()