use SHA256 digest on signatures to avoid SHA1 collision attacks (issue #120)

This commit is contained in:
Trammell Hudson 2017-05-04 11:18:50 -04:00
parent 2b2c00e594
commit a5d4c65533
Failed to extract signature

View File

@ -70,7 +70,12 @@ sha256sum \
| tee "$BOOT_HASHES"
for tries in 1 2 3; do
if gpg --detach-sign -a "$BOOT_HASHES"; then
if gpg \
--digest-algo SHA256 \
--detach-sign \
-a \
"$BOOT_HASHES" \
; then
mount -o ro,remount /boot
exit 0
fi