From 75b89783945ef26f8c1deaa1a45f7305a5633dbb Mon Sep 17 00:00:00 2001 From: Changyu Li Date: Fri, 16 Jun 2023 14:15:56 -0700 Subject: [PATCH] Use named_no_persist_key --- src/imp/schannel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imp/schannel.rs b/src/imp/schannel.rs index 62e5042f..a4cc58ab 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 { - 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() {