Struct pingora_core::utils::CertKey
source · pub struct CertKey { /* private fields */ }
Expand description
This type contains a list of one or more certificates and an associated private key. The leaf certificate should always be first.
Implementations§
source§impl CertKey
impl CertKey
sourcepub fn new(certificates: Vec<X509>, key: PKey<Private>) -> CertKey
pub fn new(certificates: Vec<X509>, key: PKey<Private>) -> CertKey
Create a new CertKey
given a list of certificates and a private key.
sourcepub fn intermediates(&self) -> &[X509]
pub fn intermediates(&self) -> &[X509]
Return a slice of intermediate certificates. An empty slice means there are none.
sourcepub fn organization(&self) -> Option<String>
pub fn organization(&self) -> Option<String>
Return the organization from the leaf certificate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CertKey
impl RefUnwindSafe for CertKey
impl Send for CertKey
impl Sync for CertKey
impl Unpin for CertKey
impl UnwindSafe for CertKey
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)