diff options
| -rw-r--r-- | scripts/sign-file | 5 |
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 | # |
| 83 | openssl rsautl -sign -inkey $key -keyform PEM -in $mod.dig -out $mod.sig || exit $? | 83 | openssl rsautl -sign -inkey $key -keyform PEM -in $mod.dig -out $mod.sig || exit $? |
| 84 | siglen=`stat -c %s $mod.sig` | ||
| 84 | 85 | ||
| 85 | SIGNER="`perl $keyid_script $x509 signer-name`" | 86 | SIGNER="`perl $keyid_script $x509 signer-name`" |
| 86 | KEYID="`perl $keyid_script $x509 keyid`" | 87 | KEYID="`perl $keyid_script $x509 keyid`" |
| 87 | keyidlen=${#KEYID} | 88 | keyidlen=$(echo -n "$KEYID" | wc -c) |
| 88 | siglen=${#SIGNER} | 89 | signerlen=$(echo -n "$SIGNER" | wc -c) |
| 89 | 90 | ||
| 90 | # | 91 | # |
| 91 | # Build the signed binary | 92 | # Build the signed binary |
