[][src]Enum picky::x509::certificate::CertError

pub enum CertError {
    CertGeneration {
        source: Box<CertError>,
    },
    InvalidCertificate {
        id: String,
        source: Box<CertError>,
    },
    Asn1Serialization {
        element: &'static str,
        source: Asn1DerError,
    },
    Asn1Deserialization {
        element: &'static str,
        source: Asn1DerError,
    },
    Signature {
        source: SignatureError,
    },
    KeyIdGen {
        source: KeyIdGenError,
    },
    InvalidChain {
        source: CaChainError,
    },
    InvalidCsr {
        source: CsrError,
    },
    ExtensionNotFound {
        name: &'static str,
    },
    MissingBuilderArgument {
        arg: &'static str,
    },
    CertificateNotYetValid {
        not_before: UTCDate,
        now: UTCDate,
    },
    CertificateExpired {
        not_after: UTCDate,
        now: UTCDate,
    },
    InvalidPemLabel {
        label: String,
    },
    Pem {
        source: PemError,
    },
}

Variants

CertGeneration

couldn't generate certificate

Fields of CertGeneration

source: Box<CertError>
InvalidCertificate

invalid certificate

Fields of InvalidCertificate

id: Stringsource: Box<CertError>
Asn1Serialization

ASN1 serialization error

Fields of Asn1Serialization

element: &'static strsource: Asn1DerError
Asn1Deserialization

ASN1 deserialization error

Fields of Asn1Deserialization

element: &'static strsource: Asn1DerError
Signature

signature error

Fields of Signature

source: SignatureError
KeyIdGen

key id generation error

Fields of KeyIdGen

source: KeyIdGenError
InvalidChain

CA chain error

Fields of InvalidChain

source: CaChainError
InvalidCsr

CSR error

Fields of InvalidCsr

source: CsrError
ExtensionNotFound

extension not found

Fields of ExtensionNotFound

name: &'static str
MissingBuilderArgument

missing required builder argument

Fields of MissingBuilderArgument

arg: &'static str
CertificateNotYetValid

certificate is not yet valid

Fields of CertificateNotYetValid

not_before: UTCDatenow: UTCDate
CertificateExpired

certificate expired

Fields of CertificateExpired

not_after: UTCDatenow: UTCDate
InvalidPemLabel

invalid PEM label error

Fields of InvalidPemLabel

label: String
Pem

invalid PEM provided

Fields of Pem

source: PemError

Trait Implementations

impl Debug for CertError[src]

impl Display for CertError[src]

impl Error for CertError[src]

impl From<PemError> for CertError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,