gdelugre / origami

Origami is a pure Ruby library to parse, modify and generate PDF documents.
GNU Lesser General Public License v3.0
326 stars 110 forks source link

Verify multiple signature #65

Open shermanelee92 opened 5 years ago

shermanelee92 commented 5 years ago

Co-authored-by: Shermane Lee shermaneleeqianhui@gmail.com Co-authored-by: Alex Ng ngjh1991@hotmail.com

We added the ability to verify a PDF that is signed multiple times.

Current behaviour fails due to the ByteRange check during extracting of signed data. We changed it such that only the last signature in the PDF is checked for invalid ByteRange.

The signatures function will extract all return signatures within the PDF.

romarioliveira25 commented 4 years ago

Anyway of list certificates in certification chain order?