]> git.ipfire.org Git - thirdparty/curl.git/commit
schannel: when importing PFX, disable key persistence
authorDustin Howett <duhowett@microsoft.com>
Thu, 25 Aug 2022 00:20:43 +0000 (19:20 -0500)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 25 Aug 2022 11:47:27 +0000 (13:47 +0200)
commit70d010d285315e5f1cad6bdb4953e167b069b692
tree7938deff21b99ffd63caedadca17cf885168d36f
parent3f98eaafa00a989e8c4686633f5bf3f137fa6480
schannel: when importing PFX, disable key persistence

By default, the PFXImportCertStore API persists the key in the user's
key store (as though the certificate was being imported for permanent,
ongoing use.)

The documentation specifies that keys that are not to be persisted
should be imported with the flag `PKCS12_NO_PERSIST_KEY`.
NOTE: this flag is only supported on versions of Windows newer than XP
and Server 2003.

Fixes #9300
Closes #9363
lib/vtls/schannel.c