14 lines
620 B
Bash
14 lines
620 B
Bash
#!/bin/bash
|
|
C=/path/to/pf/Ventoy/keys/ventoy.crt
|
|
echo "=== deployed files on p1:"
|
|
for f in /mnt/f/EFI/Boot/fbx64.efi /mnt/f/EFI/Boot/bootx64.efi /mnt/f/efi/Paravis/Boot/xor/UEFI/bootx64.efi; do
|
|
printf '%-46s ' "${f#/mnt/f/}"
|
|
if sbverify --cert "$C" "$f" >/dev/null 2>&1; then echo "our signature OK"; else echo "FAIL"; fi
|
|
done
|
|
echo
|
|
echo "=== sha256 (deployed vs staging):"
|
|
sha256sum /mnt/f/EFI/Boot/fbx64.efi /path/to/pf/Ventoy/xorboot/fbx64-xor.efi
|
|
echo
|
|
echo "=== cert: subject / key usage / basic constraints / validity"
|
|
openssl x509 -in "$C" -noout -subject -dates -ext keyUsage,extendedKeyUsage,basicConstraints
|