Struct x509_parser::certification_request::X509CertificationRequest[][src]

pub struct X509CertificationRequest<'a> {
    pub certification_request_info: X509CertificationRequestInfo<'a>,
    pub signature_algorithm: AlgorithmIdentifier<'a>,
    pub signature_value: BitStringObject<'a>,
}

Fields

certification_request_info: X509CertificationRequestInfo<'a>signature_algorithm: AlgorithmIdentifier<'a>signature_value: BitStringObject<'a>

Implementations

impl<'a> X509CertificationRequest<'a>[src]

pub fn from_der(i: &'a [u8]) -> X509Result<'_, Self>[src]

Parse a certification signing request (CSR)

CertificationRequest ::= SEQUENCE {
    certificationRequestInfo CertificationRequestInfo,
    signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }},
    signature          BIT STRING
}

certificateRequestInfo is the “Certification request information”, it is the value being signed; signatureAlgorithm identifies the signature algorithm; and signature is the result of signing the certification request information with the subject’s private key.

pub fn requested_extensions(
    &self
) -> Option<impl Iterator<Item = &ParsedExtension<'a>>>
[src]

pub fn verify_signature(&self) -> Result<(), X509Error>[src]

Verify the cryptographic signature of this certification request

Uses the public key contained in the CSR, which must be the one of the entity requesting the certification for this verification to succeed.

Trait Implementations

impl<'a> Debug for X509CertificationRequest<'a>[src]

impl<'a> PartialEq<X509CertificationRequest<'a>> for X509CertificationRequest<'a>[src]

impl<'a> StructuralPartialEq for X509CertificationRequest<'a>[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> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

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.