CertFindCertificateInStore() in HKLM cryptstore returns HKCU certificate ?!?!
From: Roelof Berg (rberg_at_berg-solutions.de)
Date: 09/11/03
- Next message: Matthias Moetje: "Re: Authenticating a user on Windows Server 2003"
- Previous message: Roelof Berg: "CertFindCertificateInStore() in HKLM cryptstore returns HKCU certificate ?!?!"
- In reply to: Roelof Berg: "CertFindCertificateInStore() in HKLM cryptstore returns HKCU certificate ?!?!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 11 Sep 2003 05:50:59 -0700
ooops, sorry, ignore that ... my fault ...
(The described behavior doesn't occur ...)
>-----Original Message-----
>Hello,
>
>Description: CertFindCertificateInStore(HKLM-Store-
>Handle,....) returns certificates that only exist in
>HKCU !
>
>What I do: I open the default HKLM "My"-systemstore:
>
>h=CertOpenStore(CERT_STORE_PROV_SYSTEM,0,NULL,
>CERT_STORE_OPEN_EXISTING_FLAG |
>CERT_SYSTEM_STORE_LOCAL_MACHINE, L"MY");
>
>Then I call:
>
>pCert=CertFindCertificateInStore(h, X509_ASN_ENCODING,
0,
>CERT_FIND_ISSUER_NAME, szIssuersSubject, *pCert);
>
>I (definitely !) have only one Certificate in my
>HKLM "My" store. I call it "Cert A" here. In my HKCU
>store I additionally have several other test-
>certificates. Call it "Cert B" and "Cert C".
>
>The strange thing is: CertFindCertificateInStore()
>returns one of the HKCU certs (e.g. "Cert B"). How can
>that be, when I perform the search in the HKLM
>CertStore ? Is this behavior by design, is it a bug, is
>it known ? What can I do to only find only certificates
>in the HKLM CertStore ?
>
>Note: B and C were generated by Non-MS CSPs (Siemens
>Sicrypt and GemPlus IKey 1000 CSPs).
>
>.
>
- Next message: Matthias Moetje: "Re: Authenticating a user on Windows Server 2003"
- Previous message: Roelof Berg: "CertFindCertificateInStore() in HKLM cryptstore returns HKCU certificate ?!?!"
- In reply to: Roelof Berg: "CertFindCertificateInStore() in HKLM cryptstore returns HKCU certificate ?!?!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|