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)>
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<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 Freeze for X509CertificateError
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