Ensure keyId is non-empty and non-zero
This commit is contained in:
parent
aea5744967
commit
b37c1f3153
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue