PAdES (PKCS11) and Zend_Pdf

February 21, 2011 Zend Framework

Similar to my last post about Zend_Mail S/MIME class, this one allows to digitally sign and even add TSA (timestamping) support to your PDF documents generated using Zend_Pdf. There is a standalone ASN1 parser included that can be used for other projects that require ASN1 data interchange. See for reference. The challenge was to add the BytesRange element with right byte bounds of the signed document. How to use it:

Note, that you need a writeable by php user directory (tmp in the example above). See attached Zend_Pdf modified class + Zend_ASN1 parser.



April 26, 2013 at 10:57 am

Hi, thanks a lot for the script. I was looking PDF digital certification for weeks. I am not using Zend, but it was quite easy extract necessary libs and voila, it running. Well done:)

    admin Post Author

    April 26, 2013 at 11:19 am

    Hi, glad it helped!

Leave a Reply

Your email address will not be published