Verify certificate without e-mail address

From: Ingrid (kosi_at_spray.no)
Date: 06/30/04


Date: 30 Jun 2004 00:39:02 -0700

Hi.

I have an Outlook add-in that uses the function
CertFindCertificateInStore (CERT_FIND_SUBJECT_STR) to find a
certificate based on an e-mail address (A part of certificate subject
is E=e-mailaddress)

But now I need to find a certificate that only has the elements
"cn=xxx o=yyy c=zzz" in the subject.

I have tried to use CERT_FIND_SUBJECT_ATTR and specify a
CERT_RDN.rgRDNAttr->pszObjId = szOID_COMMON_NAME, but I don't seem to
find the certificate.

Can anyone tell me if I'm using the correct approach or am I totally
wrong.

Thanks,

Ingrid



Relevant Pages

  • problem with CertFindCertificateInStore
    ... I'm trying to find certificate in store by using CertFindCertificateInStore. ... SubjectPublicKeyInfo (TLV). ... Everything works fine on WinXP, ...
    (microsoft.public.platformsdk.security)
  • Retrieving certificate from its issuer and serial number
    ... I need to retrieve a certificate in the store with an issuer and a serial ... I have to call my function from Visual Basic passing the issuer and serial ... parameter) of CertFindCertificateInStore function ... How can I get issuer and SN form CAPICOM certificate object and use it in ...
    (microsoft.public.platformsdk.security)
  • Re: how can i get a certificates root certificate ?
    ... i have a certificate issued by "Thawte Personal Freemail Issuing CA" ... but "Thawte Personal Freemail Issuing CA" is issued by "Thawte Personal ... if(!(pSignerCertContext = CertFindCertificateInStore( ...
    (microsoft.public.platformsdk.security)
  • Re: certifcate permision to ASPNET
    ... but how come CertFindCertificateInStore() is always failing where i works ... my code in my Winform. ... > how to add/make ASPNET access/permission to my certificate? ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: How can I find a specified certificate using the CertFindCertificateInStore() function
    ... to find the "issued to" by SubjectName substring. ... > certificate store.I use the CertFindCertificateInStore() function and the ...
    (microsoft.public.platformsdk.security)