finding a certificate context in the certificate store meeting a search criterion.



i use the codes blow to find a certificate .
but i found it can only find the certificates in the personal tab
(ie-tools-option-content-certificate )
the certificates list in others tab ,it can not find,i wonder why



if ( !( hCertStore = CertOpenStore(
CERT_STORE_PROV_SYSTEM,
0,
NULL,
CERT_SYSTEM_STORE_CURRENT_USER,
L"my")))
{
MyHandleError("The MY store could not be opened.");
}

//--------------------------------------------------------------------
// Get the certificate for the signer.

if(!(pSignerCertContext = CertFindCertificateInStore(
hCertStore,
MY_TYPE,
0,
CERT_FIND_SUBJECT_STR,
SIGNER_NAME,
NULL)))
{
MyHandleError("Cert not found.\n");
}


thanks


.



Relevant Pages

  • RE: Problem with Windows 2003 SP2 and user certificate
    ... The ceritificate is marked as Purpose - Client Authentication and should ... Certification status says that The certificate is OK. ... If this is a cert marked for Client Authentication, ... People Tab rather than Under the Personal Tab. ...
    (microsoft.public.windows.server.general)
  • Re: Certificate Installation Problem
    ... store go down the manual option and place in required store. ... When I install the certificate, I get message "Import Successful", ... but it doesn't show in the Personal Tab. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Certificate Installation Problem
    ... the certificate didn't have private key. ... store go down the manual option and place in required store. ... but it doesn't show in the Personal Tab. ...
    (microsoft.public.inetserver.iis.security)
  • Re: WinCE 5.0 Web server SSL certificate problem
    ... "Michael" wrote: ... > I set the schannel debug zone both in the registry and command line, ... > * SHA1 hash of the certificate. ... > HCERTSTORE hCertStore1, hCertStore2; ...
    (microsoft.public.windowsce.embedded)
  • Codes on NYC death certificates?
    ... I've noticed some interesting codes on two NYC death certificates I have. ... On the left side of each certificate, is a column of boxes. ... I'm particularly interested in the three boxes, labeled "Nativ. ...
    (soc.genealogy.jewish)