Skip to content

Commit

Permalink
sign-assets.sh: add manual passphrase input option
Browse files Browse the repository at this point in the history
  • Loading branch information
zdykstra committed Jan 31, 2025
1 parent ba6cd64 commit 059249c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions releng/sign-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ if ! command -v signify >/dev/null 2>&1; then
exit 1
fi

if ! pass show zfsbootmenu/signpass >/dev/null 2>&1; then
echo "ERROR: pass command does not provide passphrase for signify key"
exit 1
if [ -z "${ZBM_SIGN_PASS}" ] ; then
read -s -p "Sign key passphrase: " ZBM_SIGN_PASS
fi

if ! pass show zfsbootmenu/signpass | \
if ! echo "${ZBM_SIGN_PASS}" | \
signify -S -s "${signkey}" -x "${assets}/sha256.sig" \
-e -s "${signkey}" -m "${assets}/sha256.txt"; then
echo "ERROR: failed to sign checksum file"
Expand Down

0 comments on commit 059249c

Please sign in to comment.