Commit be3e76b
test: fix timing issue in device CA rendezvous trust test
Move the "add wrong Device CA cert to rendezvous" step before sending
the ownership voucher to the owner. This ensures the rendezvous server
has the wrong certificate in its trust store when the owner performs
TO0 (voucher registration).
Previously, the wrong cert was added AFTER the owner had already
successfully registered the voucher with the rendezvous (which had
no Device CA requirements at that point). This allowed TO0 to succeed
when it should have failed, making the test ineffective.
With this fix, when the owner performs TO0, the rendezvous will verify
the voucher's device certificate chain against the wrong CA and
correctly reject it.
Signed-off-by: Miguel Martín <mmartinv@redhat.com>
Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 6a1bbed commit be3e76b
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 50 | | |
54 | 51 | | |
55 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments