Struct rustls_cng::store::CertStore
source · pub struct CertStore(/* private fields */);
Expand description
Windows certificate store wrapper
Implementations§
source§impl CertStore
impl CertStore
sourcepub fn open(store_type: CertStoreType, store_name: &str) -> Result<CertStore>
pub fn open(store_type: CertStoreType, store_name: &str) -> Result<CertStore>
Open certificate store of the given type and name
sourcepub fn from_pkcs12(data: &[u8], password: &str) -> Result<CertStore>
pub fn from_pkcs12(data: &[u8], password: &str) -> Result<CertStore>
Import certificate store from PKCS12 file
sourcepub fn find_by_subject_str<S>(&self, subject: S) -> Result<Vec<CertContext>>
pub fn find_by_subject_str<S>(&self, subject: S) -> Result<Vec<CertContext>>
Find list of certificates matching the subject substring
sourcepub fn find_by_subject_name<S>(&self, subject: S) -> Result<Vec<CertContext>>
pub fn find_by_subject_name<S>(&self, subject: S) -> Result<Vec<CertContext>>
Find list of certificates matching the exact subject name
sourcepub fn find_by_issuer_str<S>(&self, subject: S) -> Result<Vec<CertContext>>
pub fn find_by_issuer_str<S>(&self, subject: S) -> Result<Vec<CertContext>>
Find list of certificates matching the issuer substring
sourcepub fn find_by_issuer_name<S>(&self, subject: S) -> Result<Vec<CertContext>>
pub fn find_by_issuer_name<S>(&self, subject: S) -> Result<Vec<CertContext>>
Find list of certificates matching the exact issuer name
sourcepub fn find_by_sha1<D>(&self, hash: D) -> Result<Vec<CertContext>>
pub fn find_by_sha1<D>(&self, hash: D) -> Result<Vec<CertContext>>
Find list of certificates matching the SHA1 hash
sourcepub fn find_all(&self) -> Result<Vec<CertContext>>
pub fn find_all(&self) -> Result<Vec<CertContext>>
Get all certificates
Trait Implementations§
impl Send for CertStore
impl Sync for CertStore
Auto Trait Implementations§
impl Freeze for CertStore
impl RefUnwindSafe for CertStore
impl Unpin for CertStore
impl UnwindSafe for CertStore
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