Alexander Afanasyev | d1b6f95 | 2021-07-13 15:05:43 -0400 | [diff] [blame] | 1 | rule |
2 | { | ||||
3 | id "Example rule" | ||||
4 | for data | ||||
5 | filter | ||||
6 | { | ||||
7 | type name | ||||
8 | name /example/testApp | ||||
9 | relation is-prefix-of | ||||
10 | } | ||||
11 | checker | ||||
12 | { | ||||
13 | type customized | ||||
14 | sig-type ecdsa-sha256 | ||||
15 | key-locator | ||||
16 | { | ||||
17 | type name | ||||
18 | hyper-relation | ||||
19 | { | ||||
20 | k-regex ^(<>*)<KEY><><>?<>?$ | ||||
21 | k-expand \\1 | ||||
22 | h-relation is-prefix-of | ||||
23 | p-regex ^(<>*)<>*$ | ||||
24 | p-expand \\1 | ||||
25 | } | ||||
26 | } | ||||
27 | } | ||||
28 | } | ||||
29 | |||||
30 | trust-anchor | ||||
31 | { | ||||
32 | type file | ||||
33 | file-name "example-trust-anchor.cert" | ||||
34 | } |