EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Xml sign pdf file

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#9175
Posted: 03/06/2009 12:27:12
by felix Gonzalez (Standard support level)
Joined: 03/06/2009
Posts: 7

There are any example about sign and validate a file (pdf, jpj) not xml file using XMLBlackbox?

thanks
#9177
Posted: 03/06/2009 13:48:48
by Dmytro Bogatskyy (EldoS Corp.)

The standard XMLBlackbox\Signer sample doesn't support this.
However, this sample could sign "some" data:

    Click "Sign" button, select "Detached" for the signature type,
    click "Reference" button, delete default reference in the list and add new one, select "URI Data" and copy the data to the memo field below,
    edit "URI", it could be in your own format or standard URI like this: 'file://sample.pdf'
    go back to the "Signature Options" form, select a certificate and sign.


To create a reference to a file in the code, you'll need to modify btnSignClick method. Replace the code that creates default reference (variable Ref) with:
Code
Ref := TElXMLReference.Create;
Ref.DigestMethod := xdmSHA1;
Ref.URI := 'file://sample.pdf';
Ref.URIData := FileContent; // file binary data
Refs.Add(Ref);


On verification (method btnVerifyClick) you'll need to fill URIData if URI points to a file.
#9660
Posted: 04/12/2009 06:06:34
by Thanh Nguyen Trung (Priority Standard support level)
Joined: 09/12/2008
Posts: 73

Hi,

Could you please show the way to do pdf signing in the following scenario:
1. Client loads PDF document,
2. Generate hash
3. Send the hash to the server
4. Server generates signature for the hash (The signature is in PKCS7, isn't it?)
5. Client get the signature and import the signature into the PDF document.

If it is posible, please tell me the major class names for the steps.
P/S: we are currently using SBB 6, and would like to upgrade to the SBB 7. (a quick sample code in sbb 7 will be really useful for me, Thanks)

Thank you
#9663
Posted: 04/12/2009 06:33:37
by Eugene Mayevski (EldoS Corp.)

Please don't repost your questions to various topics. Answered in other topic.


Sincerely yours
Eugene Mayevski
#9668
Posted: 04/12/2009 07:06:18
by Thanh Nguyen Trung (Priority Standard support level)
Joined: 09/12/2008
Posts: 73

Yes, I am sorry
#9806
Posted: 04/27/2009 00:49:28
by Thanh Nguyen Trung (Priority Standard support level)
Joined: 09/12/2008
Posts: 73

Hi

Does SBB support multiple signatures per one document (PDF, XADES, ...)

Thanks
Thanh
#9809
Posted: 04/27/2009 01:16:50
by Eugene Mayevski (EldoS Corp.)

With XML signing, you can sign the signed document or you can sign different nodes of the document.

PDF signing doesn't offer possibility to have several signatures, all of them being concurrently valid.


Sincerely yours
Eugene Mayevski
#9812
Posted: 04/27/2009 01:40:28
by Ken Ivanov (EldoS Corp.)

Quote
PDF signing doesn't offer possibility to have several signatures, all of them being concurrently valid.

Correction: PDF specification allows to put several signatures to the document using the incremental update approach. However, each of them will certify a particular revision of the document. For instance, the first signature certifies the original document, the second signature certifies the document plus the first signature, the third signature certifies the document plus 1st and 2nd signatures and so on.
#9817
Posted: 04/27/2009 04:47:51
by Thanh Nguyen Trung (Priority Standard support level)
Joined: 09/12/2008
Posts: 73

Thank you, I will try this with my SBB. Thanks again
#9836
Posted: 04/27/2009 14:24:01
by Thanh Nguyen Trung (Priority Standard support level)
Joined: 09/12/2008
Posts: 73

Hi

Could you please show me the way to verify the signature of a signed and time-stamped pdf document?Which SBB class will be used to do this.

Thanks
Thanh
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 7825 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!