Enum rcgen::RcgenError
source · #[non_exhaustive]pub enum RcgenError {
Show 17 variants
CouldNotParseCertificate,
CouldNotParseCertificationRequest,
CouldNotParseKeyPair,
InvalidNameType,
InvalidIpAddressOctetLength(usize),
KeyGenerationUnavailable,
UnsupportedExtension,
UnsupportedSignatureAlgorithm,
RingUnspecified,
RingKeyRejected(&'static str),
CertificateKeyPairMismatch,
Time,
PemError(PemError),
RemoteKeyError,
UnsupportedInCsr,
InvalidCrlNextUpdate,
IssuerNotCrlSigner,
}
Expand description
The error type of the rcgen crate
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CouldNotParseCertificate
The given certificate couldn’t be parsed
CouldNotParseCertificationRequest
The given certificate signing request couldn’t be parsed
CouldNotParseKeyPair
The given key pair couldn’t be parsed
InvalidNameType
Invalid subject alternative name type
InvalidIpAddressOctetLength(usize)
An IP address was provided as a byte array, but the byte array was an invalid length.
There is no support for generating keys for the given algorithm
UnsupportedExtension
Unsupported extension requested in CSR
UnsupportedSignatureAlgorithm
The requested signature algorithm is not supported
RingUnspecified
Unspecified ring
error
RingKeyRejected(&'static str)
The ring
library rejected the key upon loading
CertificateKeyPairMismatch
The provided certificate’s signature algorithm is incompatible with the given key pair
Time
Time conversion related errors
PemError(PemError)
Error from the pem crate
RemoteKeyError
Error generated by a remote key operation
UnsupportedInCsr
Unsupported field when generating a CSR
InvalidCrlNextUpdate
Invalid certificate revocation list (CRL) next update.
IssuerNotCrlSigner
CRL issuer specifies Key Usages that don’t include cRLSign.
Trait Implementations§
source§impl Debug for RcgenError
impl Debug for RcgenError
source§impl Display for RcgenError
impl Display for RcgenError
source§impl Error for RcgenError
impl Error for RcgenError
1.30.0 · 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
source§impl From<KeyRejected> for RcgenError
impl From<KeyRejected> for RcgenError
source§fn from(err: KeyRejected) -> Self
fn from(err: KeyRejected) -> Self
source§impl From<PemError> for RcgenError
impl From<PemError> for RcgenError
source§impl From<Unspecified> for RcgenError
impl From<Unspecified> for RcgenError
source§fn from(_unspecified: Unspecified) -> Self
fn from(_unspecified: Unspecified) -> Self
source§impl PartialEq for RcgenError
impl PartialEq for RcgenError
source§fn eq(&self, other: &RcgenError) -> bool
fn eq(&self, other: &RcgenError) -> bool
self
and other
values to be equal, and is used
by ==
.