pub enum X509CertificateError {
Show 18 variants
UnknownDigestAlgorithm(String),
UnknownSignatureAlgorithm(String),
UnknownKeyAlgorithm(String),
UnknownEllipticCurve(String),
UnhandledKeyAlgorithmParameters(&'static str),
UnsupportedSignatureVerification(KeyAlgorithm, SignatureAlgorithm),
PrivateKeyRejected(String),
Der(Error),
Asn1Parse(DecodeError<Infallible>),
Io(Error),
PemDecode(PemError),
SigningError(Error),
SignatureCreationInMemoryKey,
CertificateSignatureVerificationFailed,
KeyPairGenerationError,
RsaKeyGenerationNotSupported,
PkcsEncodeTooShort,
Other(String),
}
Expand description
Errors related to X.509 certificate handling.
Variants§
UnknownDigestAlgorithm(String)
UnknownSignatureAlgorithm(String)
UnknownKeyAlgorithm(String)
UnknownEllipticCurve(String)
UnhandledKeyAlgorithmParameters(&'static str)
UnsupportedSignatureVerification(KeyAlgorithm, SignatureAlgorithm)
PrivateKeyRejected(String)
Der(Error)
Asn1Parse(DecodeError<Infallible>)
Io(Error)
PemDecode(PemError)
SigningError(Error)
SignatureCreationInMemoryKey
CertificateSignatureVerificationFailed
KeyPairGenerationError
RsaKeyGenerationNotSupported
PkcsEncodeTooShort
Other(String)
Trait Implementations§
source§impl Debug for X509CertificateError
impl Debug for X509CertificateError
source§impl Display for X509CertificateError
impl Display for X509CertificateError
source§impl Error for X509CertificateError
impl Error for X509CertificateError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<DecodeError<Infallible>> for X509CertificateError
impl From<DecodeError<Infallible>> for X509CertificateError
source§fn from(e: DecodeError<Infallible>) -> Self
fn from(e: DecodeError<Infallible>) -> Self
Converts to this type from the input type.
source§impl From<Error> for X509CertificateError
impl From<Error> for X509CertificateError
source§impl From<Error> for X509CertificateError
impl From<Error> for X509CertificateError
source§impl From<Error> for X509CertificateError
impl From<Error> for X509CertificateError
source§impl From<KeyRejected> for X509CertificateError
impl From<KeyRejected> for X509CertificateError
source§fn from(e: KeyRejected) -> Self
fn from(e: KeyRejected) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for X509CertificateError
impl Send for X509CertificateError
impl Sync for X509CertificateError
impl Unpin for X509CertificateError
impl !UnwindSafe for X509CertificateError
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