#[non_exhaustive]pub enum X509ChainError {
InvalidDepth,
InvalidDer {
kind: &'static str,
message: String,
},
UntrustedRoot,
DepthExceeded(usize),
CertificateNotValid(usize),
IssuerNotCa(usize),
PathLengthExceeded {
position: usize,
limit: u32,
},
InvalidKeyUsage {
position: usize,
required: &'static str,
},
InvalidSignature(usize),
InvalidCrl(usize),
Revoked(usize),
}Expand description
Certificate-chain validation failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidDepth
The configured path limit cannot contain a certificate.
InvalidDer
A certificate or CRL is malformed DER.
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
InvalidKeyUsage
A certificate key usage extension forbids the required operation.
Fields
InvalidSignature(usize)
A certificate signature does not verify under its issuer key.
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§fn clone(&self) -> X509ChainError
fn clone(&self) -> X509ChainError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<X509ChainError> for KeyResolutionError
impl From<X509ChainError> for KeyResolutionError
Source§fn from(source: X509ChainError) -> Self
fn from(source: X509ChainError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for X509ChainError
impl PartialEq for X509ChainError
impl StructuralPartialEq for X509ChainError
Auto Trait Implementations§
impl Freeze for X509ChainError
impl RefUnwindSafe for X509ChainError
impl Send for X509ChainError
impl Sync for X509ChainError
impl Unpin for X509ChainError
impl UnsafeUnpin for X509ChainError
impl UnwindSafe for X509ChainError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more