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

Dmitry Timoshkov dmitry at baikal.ru
Wed Feb 6 02:31:41 CST 2019


Hans Leidekker <hans at codeweavers.com> wrote:

> 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?

You mean under Windows? Yes, it starts to fail after that.

-- 
Dmitry.



More information about the wine-devel mailing list