diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-11-05 13:43:02 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-11-06 14:01:09 +0100 |
commit | 8cbd9d8328d58a69414b3ce845b29476da155f57 (patch) | |
tree | d318ad1809d1ac0fc008ace9db2ce909b1242df6 /test | |
parent | Introduce systemd-sbsign to do secure boot signing (diff) | |
download | systemd-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-x | test/units/TEST-74-AUX-UTILS.sbsign.sh | 4 |
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 |