sbsigntools/tests/sign-attach-verify.sh

13 lines
251 B
Bash
Raw Normal View History

#!/bin/bash -e
. "$srcdir/common.sh"
sig=test.sig
signed=test.signed
trap 'rm -f "$sig" "$signed"' EXIT
"$sbsign" --cert "$cert" --key "$key" --detached --output $sig "$image"
"$sbattach" --attach $sig $signed
"$sbverify" --cert "$cert" "$signed"