pub struct Cert<'a> { /* private fields */ }
Expand description
A parsed X509 certificate.
Implementations§
Source§impl<'a> Cert<'a>
impl<'a> Cert<'a>
Sourcepub fn valid_dns_names(&self) -> impl Iterator<Item = &str>
pub fn valid_dns_names(&self) -> impl Iterator<Item = &str>
Returns a list of valid DNS names provided in the subject alternative names extension
This function must not be used to implement custom DNS name verification. Checking that a certificate is valid for a given subject name should always be done with EndEntityCert::verify_is_valid_for_subject_name.
Sourcepub fn subject_public_key_info(&self) -> SubjectPublicKeyInfoDer<'static>
Available on crate feature alloc
only.
pub fn subject_public_key_info(&self) -> SubjectPublicKeyInfoDer<'static>
alloc
only.Get the RFC 5280-compliant SubjectPublicKeyInfoDer
(SPKI) of this Cert
.
Sourcepub fn der(&self) -> CertificateDer<'a>
pub fn der(&self) -> CertificateDer<'a>
Raw DER encoded representation of the certificate.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Cert<'a>
impl<'a> RefUnwindSafe for Cert<'a>
impl<'a> Send for Cert<'a>
impl<'a> Sync for Cert<'a>
impl<'a> Unpin for Cert<'a>
impl<'a> UnwindSafe for Cert<'a>
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 248 bytes