summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-11-05 13:43:02 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-11-06 14:01:09 +0100
commit8cbd9d8328d58a69414b3ce845b29476da155f57 (patch)
treed318ad1809d1ac0fc008ace9db2ce909b1242df6 /test
parentIntroduce systemd-sbsign to do secure boot signing (diff)
downloadsystemd-8cbd9d8328d58a69414b3ce845b29476da155f57.tar.xz
systemd-8cbd9d8328d58a69414b3ce845b29476da155f57.zip
sbsign: Add validate-key verb
This verb checks that we can load the specified private key.
Diffstat (limited to 'test')
-rwxr-xr-xtest/units/TEST-74-AUX-UTILS.sbsign.sh4
1 files changed, 4 insertions, 0 deletions
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