pub struct ParsedCertificate<'a> {Show 13 fields
pub der: &'a [u8],
pub spki: &'a [u8],
pub public_key: &'a [u8],
pub issuer_dn: &'a [u8],
pub subject_dn: &'a [u8],
pub tbs: &'a [u8],
pub signature_value: &'a [u8],
pub sig_alg_oid: &'a [u8],
pub spki_alg_oid: &'a [u8],
pub is_ca: Option<bool>,
pub has_server_auth_eku: Option<bool>,
pub not_before: u64,
pub not_after: u64,
}Expand description
A pre-parsed X.509 certificate with all commonly accessed fields extracted in a single DER walk.
Fields§
§der: &'a [u8]Full DER encoding.
spki: &'a [u8]SubjectPublicKeyInfo DER.
public_key: &'a [u8]Raw public key bytes (BIT STRING content, minus unused-bits byte).
issuer_dn: &'a [u8]Issuer Distinguished Name (value of the Name SEQUENCE).
subject_dn: &'a [u8]Subject Distinguished Name (value of the Name SEQUENCE).
tbs: &'a [u8]TBSCertificate raw bytes (tag + length + value) — the signed portion.
signature_value: &'a [u8]Signature value bytes (BIT STRING content).
sig_alg_oid: &'a [u8]Signature algorithm OID.
spki_alg_oid: &'a [u8]SPKI algorithm OID.
is_ca: Option<bool>Whether Basic Constraints cA is TRUE (None = extension absent).
has_server_auth_eku: Option<bool>Whether EKU includes serverAuth (None = extension absent).
not_before: u64notBefore as Unix timestamp (seconds since epoch).
not_after: u64notAfter as Unix timestamp (seconds since epoch).
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ParsedCertificate<'a>
impl<'a> RefUnwindSafe for ParsedCertificate<'a>
impl<'a> Send for ParsedCertificate<'a>
impl<'a> Sync for ParsedCertificate<'a>
impl<'a> Unpin for ParsedCertificate<'a>
impl<'a> UnsafeUnpin for ParsedCertificate<'a>
impl<'a> UnwindSafe for ParsedCertificate<'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