pub struct ParsedPfx {
pub private_key: PKey<Private>,
pub certificate: X509,
pub chain: Vec<X509>,
}Expand description
Represents the contents of a parsed PFX file
Fields§
§private_key: PKey<Private>The private key
certificate: X509The main certificate
chain: Vec<X509>Additional certificates in the chain (if any)
Implementations§
Source§impl ParsedPfx
impl ParsedPfx
Sourcepub fn cert_info(&self) -> String
pub fn cert_info(&self) -> String
Get certificate information as a formatted string (legacy method)
Sourcepub fn certificate_info(&self) -> CertificateInfo
pub fn certificate_info(&self) -> CertificateInfo
Get detailed certificate information
Sourcepub fn chain_length(&self) -> usize
pub fn chain_length(&self) -> usize
Get the number of certificates in the chain
Trait Implementations§
Source§impl From<ParsedPkcs12_2> for ParsedPfx
impl From<ParsedPkcs12_2> for ParsedPfx
Source§fn from(parsed: ParsedPkcs12) -> Self
fn from(parsed: ParsedPkcs12) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParsedPfx
impl RefUnwindSafe for ParsedPfx
impl Send for ParsedPfx
impl Sync for ParsedPfx
impl Unpin for ParsedPfx
impl UnsafeUnpin for ParsedPfx
impl UnwindSafe for ParsedPfx
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