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<'_>
pub fn subject_public_key_info(&self) -> SubjectPublicKeyInfoDer<'_>
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