Re: Creating PKCS#7

From: Aftab Alam (aftab.alam_at_ascertia.com)
Date: 01/22/04


Date: Thu, 22 Jan 2004 10:34:54 +0500

well I might be using it but there is no help or samples provided by
microsoft other then certificate store and another sample, I am not pretty
much into COM but I can use it anyway but the problem is I tried things by
my self and got a lot of errors

as follows
_bstr_t bstrName = _T( "My" );

        IStorePtr pIStore(__uuidof(Store));

        if (FAILED(hr = pIStore->Open( CAPICOM_CURRENT_USER_STORE,
                                      bstrName,
                                      CAPICOM_STORE_OPEN_READ_ONLY)))

when I right the following
 ISignedData pISignedData(__uuidof(SignedData));

and errors were as follows
CAPICOMSign\CAPICOMSignDlg.cpp(205) : error C2259: 'ISignedData' : cannot
instantiate abstract class due to following members:

now what I need to know is only what interfaces and objects would be used to
make a PKCS#7 when I am given some data to make an attached PKCS7 and I have
got the pfx with full chain. and I want to put the full chain in the PKCS7
as well.

best Regards
Muhammad Aftab Alam

"Vishal Agarwal[MSFT]" <vishala@online.microsoft.com> wrote in message
news:OG7fCdF4DHA.2132@TK2MSFTNGP10.phx.gbl...
> Hi,
> Can you use CAPICOM as it offers much easier interface to create Signed
> PKCS#7 messages?
>
> Thanks,
> Vishal [MSFT]
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
> "Aftab Alam" <aftab.alam@ascertia.com> wrote in message
> news:%23dTWb9%233DHA.2612@tk2msftngp13.phx.gbl...
> > Hello All
> > I am new to CryptoAPI, I want to create a PKCS#7 attached data file that
> can
> > be verified from IAIK(Java) toolkit.
> > I have used the sample of MSDN that uses CryptSignMessage function
> > then I copied the pbSignedMessageBlob to a file so that it can be
verified
> > from the other application but as I used a berviewer application it
tells
> me
> > that it doesnt contain the signing certificate I saw it in MSDN and it
> tells
> > that if the
> > CRYPT_SIGN_MESSAGE_PARA's memeber cMsgCert = 1 it should contain the
> > Signing certificate, may be there is something I am doing wrong or
> > understanding wrong so please guide me to the thing that I simply want
to
> > make a PKCS#7 attached with signing certificate and certificate chain in
> it
> > as well.
> >
> > best Regards
> > Muhammad Aftab Alam
> >
> >
> >
> >
>
>



Relevant Pages

  • Re: Export PKCS#7 from certificate with CAPICOM
    ... already published by Outlook certificate is 2078 bytes, ... the same certificate using Store.Export, ... </snip from MSDN> ... Especially I need to export certificate to memory block in PKCS# ...
    (microsoft.public.platformsdk.security)
  • help about CryptoApi
    ... I want to use CryptoApi functions in Visual C++ project. ... some exaples from MSDN but i can't make them working with certificate ... files(*.cer and *.pfx). ... CryptoApi only with certificate files? ...
    (microsoft.public.platformsdk.security)
  • Re: How to get the certificate sent by server to IE.
    ... I want to get that certificate. ... best regards ... > Do you mean when visiting site by means of HttpWebRequest or from PIE ... >> Muhammad Aftab Alam ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Certificate Trust List
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... I imported the CTL signing certificate in my ... >>Is the CTL signing certificate in your local profile? ...
    (microsoft.public.win2000.security)
  • Re: Certificate Revocation List (CRL) problem w/ Outlook XP
    ... the Signing Certificate using Outlook Clients. ... the Signing Certificate, the system fetches the Crl files to your Local ... If a Certificate found in the Certification Path has no CDP (Certificate ...
    (microsoft.public.security)