Hi i'm trying to sign some data with

PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509)
*certs, BIO *data, int flags); that function.Therefore the problem is
i
want to include into pkcs7 document the cert chain. I use that
function in python so i'm not very good at C :). The thing i tried is
:

1)created a x509 stack and stored the intermediate CAs there
2)sign cert is my client cert,so also ,included  the pey (my private key)
3) Set the flag to DETACHED

All the signig is done.But when i verify the document and get the
signers with : get0_signers functon i get only my client cert not all
the chain...

What is wrong with my call?

Reply via email to