From 8cbd9d8328d58a69414b3ce845b29476da155f57 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 5 Nov 2024 13:43:02 +0100 Subject: sbsign: Add validate-key verb This verb checks that we can load the specified private key. --- test/units/TEST-74-AUX-UTILS.sbsign.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/units/TEST-74-AUX-UTILS.sbsign.sh b/test/units/TEST-74-AUX-UTILS.sbsign.sh index fc186517d1..891a2ae8af 100755 --- a/test/units/TEST-74-AUX-UTILS.sbsign.sh +++ b/test/units/TEST-74-AUX-UTILS.sbsign.sh @@ -53,4 +53,8 @@ testcase_sign_systemd_boot() { sbverify --cert /tmp/sb.crt /tmp/sdboot } +testcase_validate_key() { + /usr/lib/systemd/systemd-sbsign validate-key --certificate /tmp/sb.crt --private-key /tmp/sb.key +} + run_testcases -- cgit v1.2.3