diff --git a/src/imp/schannel.rs b/src/imp/schannel.rs index 62e5042..a4cc58a 100644 --- a/src/imp/schannel.rs +++ b/src/imp/schannel.rs @@ -65,7 +65,7 @@ pub struct Identity { impl Identity { pub fn from_pkcs12(buf: &[u8], pass: &str) -> Result<Identity, Error> { - let store = PfxImportOptions::new().password(pass).import(buf)?; + let store = PfxImportOptions::new().password(pass).named_no_persist_key(true).import(buf)?; let mut identity = None; for cert in store.certs() {