File extract_signature.sh of Package shim
16
1
2
# extract ascii armored signature from a PE binary
3
set -e
4
5
infile="$1"
6
7
if [ -z "$infile" -o ! -e "$infile" ]; then
8
echo "USAGE: $0 file.efi"
9
exit 1
10
fi
11
12
# wtf?
13
(pesign -h -P -i "$infile";
14
perl $(dirname $0)/timestamp.pl "$infile";
15
pesign -a -f -e /dev/stdout -i "$infile")|cat
16