File: java-pdfsign1-tsa

package info (click to toggle)
endesive 2.18.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,540 kB
  • sloc: python: 17,934; java: 1,000; xml: 800; sh: 306; javascript: 118; makefile: 8
file content (17 lines) | stat: -rwxr-xr-x 370 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
cert=/home/mak/Dokumenty/m32/ssl/cert.p12
cert=demo2_user1.p12
cert=cert-unizeto.p12
certpass=1234
thisdir=`dirname $0`
jars="$thisdir"
addjar(){
jars="$jars:$1"
}
for fname in $thisdir/java/*.jar; do
    addjar $fname
done
java -cp $jars \
org.apache.pdfbox.examples.signature.CreateSignature \
-tsa http://public-qlts.certum.pl/qts-17 \
$cert $certpass $1