Digitally sign PDF files
h.goebel at goebel-consult.de
Mon Aug 11 22:29:36 CEST 2008
> I'm developing an application with some reports and we're looking for
> advice. This reports should be openoffice.org .odf files, pdf files,
> and perhaps microsoft word files (.doc, .docx?) and must be digitally
> signed. Is out there some kind of libraries to ease this tasks?
For signing you can use OpenSSL or the more complete M2crypto modules.
But this is only the crypto part of the task.
> * Access to the local user certificate store, and read PEM or PKCS12
> certificate files.
If the certificate store is just a file, both packages can to this. If
the store is some otehr format or maybe the Windows registry, some
additional functions are required, but should be easy to implement.
> * Read, parse and validate user certificates
This can be easily done with both.
> * Sign documents: as a binary stream, within an specific document
> (pdf, odt, doc)
This is the hardest part of the task, since the signature has to be
embedded into the document.
Schönen Gruß - Regards
Spezialist für IT-Sicherheit in komplexen Umgebungen
More information about the Python-list