Hans Leidekker hans@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.