sbsigntools/tests/sign-attach-verify.sh

12 lines
247 B
Bash
Raw Normal View History

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