forked from hpcc-systems/EclipsePlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsign.sh
More file actions
executable file
·22 lines (17 loc) · 772 Bytes
/
sign.sh
File metadata and controls
executable file
·22 lines (17 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
run_jarsigner()
{
for jar_file in $(ls -r $1)
do
echo
echo $jar_file
echo "jarsigner -storetype pkcs12 --digestalg SHA1 -sigalg MD5withRSA -keystore ${KEYSTORE} storepass ${STOREPASS} -tsa ${TSA} -verbose ${jar_file} 1"
jarsigner -storetype pkcs12 --digestalg SHA1 -sigalg MD5withRSA -keystore "${KEYSTORE}" storepass "${STOREPASS}" -tsa "${TSA}" -verbose "${jar_file}" 1
done
}
JARSIGNER=jarsigner
KEYSTORE=/tmount/data3/build/windows/sign/current/hpcc_code_signing.pfx
TSA=https://timestamp.geotrust.com/tsa
STOREPASS=$(cat /tmount/data3/build/windows/sign/passphrase.txt)
run_jarsigner "./org.hpccsystems.updatesite/target/site/features/*.jar"
run_jarsigner "./org.hpccsystems.updatesite/target/site/plugins/*.jar"