aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/sign-file5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/sign-file b/scripts/sign-file
index 095a953bdb8e..d014abd11f1c 100644
--- a/scripts/sign-file
+++ b/scripts/sign-file
@@ -81,11 +81,12 @@ openssl dgst $dgst -binary $mod || exit $?
81# the signature with no metadata attached. 81# the signature with no metadata attached.
82# 82#
83openssl rsautl -sign -inkey $key -keyform PEM -in $mod.dig -out $mod.sig || exit $? 83openssl rsautl -sign -inkey $key -keyform PEM -in $mod.dig -out $mod.sig || exit $?
84siglen=`stat -c %s $mod.sig`
84 85
85SIGNER="`perl $keyid_script $x509 signer-name`" 86SIGNER="`perl $keyid_script $x509 signer-name`"
86KEYID="`perl $keyid_script $x509 keyid`" 87KEYID="`perl $keyid_script $x509 keyid`"
87keyidlen=${#KEYID} 88keyidlen=$(echo -n "$KEYID" | wc -c)
88siglen=${#SIGNER} 89signerlen=$(echo -n "$SIGNER" | wc -c)
89 90
90# 91#
91# Build the signed binary 92# Build the signed binary