[PATCH] crypt32: CryptAcquireCertificatePrivateKey should look up certificate in the user's store if the provided certificate is not linked to a provider.

Hans Leidekker hans at codeweavers.com
Wed Feb 6 02:26:58 CST 2019

On Wed, 2019-02-06 at 15:25 +0800, Dmitry Timoshkov wrote:
> Under Windows passing to CryptAcquireCertificatePrivateKey() a certificate
> retrieved from the key container using (KP_CERTIFICATE) +
> CertCreateCertificateContext() works although such a certificate doesn't
> have assigned properties at all. In order this to work Windows probably
> looks up an original certificate in the user's private store.

Does the function fail if you remove the original certificate from the
private store?

More information about the wine-devel mailing list