-
Notifications
You must be signed in to change notification settings - Fork 10
/
README
42 lines (29 loc) · 1.2 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SignPDF - a simple iText based command line application to
sign a PDF document.
Features:
* Signs a PDF document with a valid certificate
* Encrypts/Protects a PDF document
* Timestamps a PDF document (optional feature)
* Supports different Config-Files defined by env. variable
All settings will be taken from ~/.signpdf configuration file.
If no config file exist, a fresh config file will be created.
Alternatively the environment variable SIGNPDFRC can be used to
sign with different keys.
If you omit to leave plain passwords in the config file,
you will be prompted for password by running SignPDF.
A JKS keystore with a cert signed by your desired CA is mandatory
for use. Not mandatory, but a nice feature the tsa_url of a time
stamp server in order to timestamp your documents.
The resulting PDF file will be signed and protected with allowed
restrictions to print, content copying and content copying for
accessibility.
Most of the crypto code is based on the iText docs at
http://itextpdf.sourceforge.net/howtosign.html
To package you'll need folowing jar's:
bcpkix-jdk15on-1.47.jar
bcprov-jdk15on-1.47.jar
itext-hyph-xml.jar
iText.jar
iText-xml.jar
iText-xtra.jar
jna.jar