2012-06-13 06:23:26 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2012-06-13 08:56:28 +00:00
|
|
|
sig="test.sig"
|
|
|
|
signed="test.signed"
|
2012-06-13 06:23:26 +00:00
|
|
|
|
2012-06-13 08:56:28 +00:00
|
|
|
"$sbsign" --cert "$cert" --key "$key" --detached --output "$sig" "$image"
|
|
|
|
cp "$image" "$signed"
|
|
|
|
"$sbattach" --attach "$sig" "$signed"
|
2012-06-13 06:23:26 +00:00
|
|
|
"$sbverify" --cert "$cert" "$signed"
|