From 1825798794796811c6e2582b0c512d0fa41a84c7 Mon Sep 17 00:00:00 2001 From: Domenico Panella Date: Sat, 10 Oct 2020 13:21:35 +0200 Subject: [PATCH] Update --- mklive.sh.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mklive.sh.in b/mklive.sh.in index f35cb4069..fc0ea9dec 100644 --- a/mklive.sh.in +++ b/mklive.sh.in @@ -202,7 +202,13 @@ generate_isolinux_boot() { dosign() { print_step "Signing $2..." - sbsign --key $DBKEY --cert $DBCRT --output "$1".signed "$1" + + if ! sbsign --key "$DBKEY" --cert "$DBCRT" --output "$1.signed" "$1"; then + die "Failed to sign $2" + fi + if ! sbverify --cert "$DBCRT" "$1.signed"; then + die "failed to verify the signature" + fi } generate_grub_efi_boot() {