Re: Creating PKCS7 object using NSS

2012-08-11 Thread Wan-Teh Chang
On Sat, Aug 11, 2012 at 5:37 AM, Gökçen Eraslan wrote: > > When I traced the code I see that sec_pkcs7_create_signed_data call > returns successfully but sec_pkcs7_add_signer fails. > > Trace is like that: > > sec_pkcs7_add_signer -> CERT_VerifyCertificate -> CERT_VerifyCertChain > -> CERT_FindBa

Creating PKCS7 object using NSS

2012-08-11 Thread Gökçen Eraslan
Hello, I'm working for the Libreoffice in Google Summer of Code 2012. My project is to implement PDF signing. I'm trying to create a PKCS7 object of the PDF file and include the PKCS7 object in the file itself. But when I call: SEC_PKCS7ContentInfo *ci = SEC_PKCS7CreateSignedData(cert, certUsage