pub struct X509CertificationRequest<'a> {
pub certification_request_info: X509CertificationRequestInfo<'a>,
pub signature_algorithm: AlgorithmIdentifier<'a>,
pub signature_value: BitString<'a>,
}
Expand description
Certification Signing Request (CSR)
Fields
certification_request_info: X509CertificationRequestInfo<'a>
signature_algorithm: AlgorithmIdentifier<'a>
signature_value: BitString<'a>
Implementations
sourceimpl<'a> X509CertificationRequest<'a>
impl<'a> X509CertificationRequest<'a>
pub fn requested_extensions(
&self
) -> Option<impl Iterator<Item = &ParsedExtension<'_>>>
sourcepub fn verify_signature(&self) -> Result<(), X509Error>
pub fn verify_signature(&self) -> Result<(), X509Error>
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
sourceimpl<'a> Debug for X509CertificationRequest<'a>
impl<'a> Debug for X509CertificationRequest<'a>
sourceimpl<'a> FromDer<'a, X509Error> for X509CertificationRequest<'a>
impl<'a> FromDer<'a, X509Error> for X509CertificationRequest<'a>
CertificationRequest ::= SEQUENCE { certificationRequestInfo CertificationRequestInfo, signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }}, signature BIT STRING }
sourcefn from_der(i: &'a [u8]) -> X509Result<'a, Self>
fn from_der(i: &'a [u8]) -> X509Result<'a, Self>
Attempt to parse input bytes into a DER object (enforcing constraints)
sourceimpl<'a> PartialEq<X509CertificationRequest<'a>> for X509CertificationRequest<'a>
impl<'a> PartialEq<X509CertificationRequest<'a>> for X509CertificationRequest<'a>
sourcefn eq(&self, other: &X509CertificationRequest<'a>) -> bool
fn eq(&self, other: &X509CertificationRequest<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &X509CertificationRequest<'a>) -> bool
fn ne(&self, other: &X509CertificationRequest<'a>) -> bool
This method tests for !=
.
impl<'a> StructuralPartialEq for X509CertificationRequest<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for X509CertificationRequest<'a>
impl<'a> Send for X509CertificationRequest<'a>
impl<'a> Sync for X509CertificationRequest<'a>
impl<'a> Unpin for X509CertificationRequest<'a>
impl<'a> UnwindSafe for X509CertificationRequest<'a>
Blanket Implementations
sourceimpl<'a, T, E> AsTaggedExplicit<'a, E> for T where
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for T where
T: 'a,
sourceimpl<'a, T, E> AsTaggedImplicit<'a, E> for T where
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for T where
T: 'a,
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more