Re: parsing pkcs#7 string
From: Michel Gallant (neutron_at_NOSPAMistar.ca)
Date: 12/02/03
- Next message: Michel Gallant: "Re: Creating certificate PFX files"
- Previous message: anonymous_at_discussions.microsoft.com: "Re: Creating certificate PFX files"
- In reply to: lamquoc: "parsing pkcs#7 string"
- Next in thread: lamquoc: "Re: parsing pkcs#7 string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 2 Dec 2003 16:31:58 -0500
(1)In CAPICOM you can use:
SignedData.Certificates collection and
SignedData.Signers collection
Note however that for these collections to be valid and available,
the signature verification must be executed first and succeed:
SignedData.Verify()
(2) In CryptoAPI, you can open a CMS/PKCS #7 Signed or Enveloped message and then get the
certificates by executing:
CryptMsgOpenToDecode()
CryptMsgUpdate()
and then
CryptMsgGetParam() with
with dwParamType = CMSG_CERT_COUNT_PARAM and CMSG_CERT_PARAM
to get all the certificates.
- Mitch Gallant
"lamquoc" <lamquoc.xtw6a@mail.mcse.ms> wrote in message news:lamquoc.xtw6a@mail.mcse.ms...
>
> I'm wondering if there is any class in CAPICOM that can parse the pkcs#7
> string? I try to extract the certificates in the pkcs#7 but so far
> have not found a way to do this in Microsoft development world.
> I saw someone posted this question earlier, but the link refered in
> there is dead.
> Thanks,
> Lam
>
>
> lamquoc
> ------------------------------------------------------------------------
> Posted via http://www.mcse.ms
> ------------------------------------------------------------------------
> View this thread: http://www.mcse.ms/message136168.html
>
- Next message: Michel Gallant: "Re: Creating certificate PFX files"
- Previous message: anonymous_at_discussions.microsoft.com: "Re: Creating certificate PFX files"
- In reply to: lamquoc: "parsing pkcs#7 string"
- Next in thread: lamquoc: "Re: parsing pkcs#7 string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|