Ensure keyId is non-empty and non-zero

This commit is contained in:
Petr Menšík 2024-03-20 11:28:51 +01:00
commit b37c1f3153

View file

@ -186,6 +186,8 @@ rlJournalStart
buDigSuccessSecure @localhost
KEYID=$(buDigKskId @localhost .)
rlAssertNotEquals "Check keyId is not empty." "$KEYID" ""
rlAssertGreater "Check keyId is non-zero" "$KEYID" 0
rlRun "rndc secroots"
rlRun "grep \"^./RSASHA256/$KEYID\" /var/named/data/named.secroots" 0 "Check trust anchor is trusted"
rlPhaseEnd