Re: Creating PKCS#7
From: Aftab Alam (aftab.alam_at_ascertia.com)
Date: 01/22/04
- Next message: ByronKim: "Re: Reversed issuer name returned by X509Certificate.GetIssuerName()"
- Previous message: Krish Shenoy[MSFT]: "Re: Certificate Services Database"
- In reply to: Vishal Agarwal[MSFT]: "Re: Creating PKCS#7"
- Next in thread: Aftab Alam: "Re: Creating PKCS#7"
- Reply: Aftab Alam: "Re: Creating PKCS#7"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
> >
> >
> >
> >
>
>
- Next message: ByronKim: "Re: Reversed issuer name returned by X509Certificate.GetIssuerName()"
- Previous message: Krish Shenoy[MSFT]: "Re: Certificate Services Database"
- In reply to: Vishal Agarwal[MSFT]: "Re: Creating PKCS#7"
- Next in thread: Aftab Alam: "Re: Creating PKCS#7"
- Reply: Aftab Alam: "Re: Creating PKCS#7"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|