File strip_signature.sh of Package shim
xxxxxxxxxx
1
2
# strip the signature from a PE binary
3
set -e
4
5
infile="$1"
6
if [ -z "$infile" -o ! -e "$infile" ]; then
7
echo "USAGE: $0 file.efi"
8
exit 1
9
fi
10
11
outfile="${infile%.efi}-unsigned.efi"
12
13
pesign -r -i "$infile" -o "$outfile"
14