Re: [Podofo-users] Help related to singing PDF document

2019-01-15 Thread zyx
On Mon, 2019-01-14 at 11:21 +0530, Susheela S wrote: > Yes, initially I tried different approach using OpenSSL but had > issues, so while I was searching for solution I found the signing > code from the link mentioned by you ( > https://gist.github.com/diorahman/d91fd79c939e2bd3ee89). I forgot to

Re: [Podofo-users] Help related to singing PDF document

2019-01-13 Thread Michal Sudolsky
Also I would not recommend SHA1. On Sun, Jan 13, 2019 at 8:58 PM Michal Sudolsky wrote: > Hi, > > From attached cpp file: > > ``` > > unsigned char* p7Buf = (unsigned char*) malloc(p7Len); > > unsigned char *p; > > p=p7Buf; > > if (p7Buf != NULL) { > > int len =

Re: [Podofo-users] Help related to singing PDF document

2019-01-13 Thread Michal Sudolsky
Hi, >From attached cpp file: ``` unsigned char* p7Buf = (unsigned char*) malloc(p7Len); unsigned char *p; p=p7Buf; if (p7Buf != NULL) { int len = i2d_PKCS7(p7, ); printf("%i", len); std::cout << "p7Buf filled"; } PKCS7_free(p7);

[Podofo-users] Help related to singing PDF document

2019-01-13 Thread Susheela S
Hi, I have tried to sign PDF document using latest version of PoDoFo 0.9.6 and openssl has been used for reading the certificate. I have attached the .ccp file which has the code. The PDF file get created, but when it shows "invalid signature' on mouse over the signature field. "Error