Authority Information Access

From: Param (Param_at_discussions.microsoft.com)
Date: 10/11/04


Date: Mon, 11 Oct 2004 05:21:03 -0700

Hi,
I have a certificate with Authority Information Access as a field
and the value as

[1]Authority Info Access
     Access Method=On-line Certificate Status Protocol (1.3.6.1.5.5.7.48.1)
Alternative Name:
          URL=http://......../crl.crl

I want to fetch the URL from the certificate...
Here is the snippet.....

CERT_EXTENSION * pResult = CertFindExtension(szOID_PKIX_OCSP,
  pCertContext->pCertInfo->cExtension,
pCertContext->pCertInfo->rgExtension);

BOOL fResult = CryptDecodeObject(MY_ENCODING_TYPE,
                                                                         X509_AUTHORITY_INFO_ACCESS,
                                                                         pResult->Value.pbData,
                                                                         pResult->Value.cbData,
                                                                         CRYPT_DECODE_NOCOPY_FLAG,
                                                                         NULL,
                                                                         &ln);

What structure i have to use here.....
If this is wrong way of doing , How?

Thanx in advance

 



Relevant Pages

  • Different fields of a certificate.
    ... I have generated a certificate using Microsoft certificate services ... Authority Information Access, ... Enhanced key usage, ...
    (microsoft.public.win2000.security)
  • Re: Authority Information Access
    ... Regards ... Tariq ... > I have a certificate with Authority Information Access as a field ... > I want to fetch the URL from the certificate... ...
    (microsoft.public.platformsdk.security)

Quantcast