pub enum CertError {
Show 13 variants
NoCertificates,
Parse(String),
Expired {
subject: String,
},
NotYetValid {
subject: String,
},
HostnameMismatch {
host: String,
names: Vec<String>,
},
UnknownIssuer {
subject: String,
issuer: String,
},
BadSignature {
subject: String,
},
NotCa {
subject: String,
},
UsageNotAllowed {
subject: String,
},
PathTooLong,
UnsupportedCriticalExtension {
subject: String,
oid: String,
},
Revoked {
subject: String,
reason: Option<u8>,
},
RevocationUnknown {
subject: String,
why: String,
},
}Expand description
Certificate validation failures.
Variants§
NoCertificates
Parse(String)
Expired
NotYetValid
HostnameMismatch
UnknownIssuer
BadSignature
NotCa
UsageNotAllowed
PathTooLong
UnsupportedCriticalExtension
Revoked
The certificate is revoked (CRL or OCSP); reason is the CRLReason code when given.
RevocationUnknown
Revocation checking was required but no valid status could be obtained.
Trait Implementations§
Source§impl Debug for CertError
Debug output is the Display text (smaller than a derived implementation).
impl Debug for CertError
Debug output is the Display text (smaller than a derived implementation).
impl Eq for CertError
Source§impl Error for CertError
impl Error for CertError
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()
impl StructuralPartialEq for CertError
Auto Trait Implementations§
impl Forget for CertError
impl Freeze for CertError
impl Move for CertError
impl RefUnwindSafe for CertError
impl Send for CertError
impl Sync for CertError
impl Unpin for CertError
impl UnsafeUnpin for CertError
impl UnwindSafe for CertError
Blanket Implementations§
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