blob: e3f90e6c562c2f2a45a25882ff884b69f5a6850b [file] [log] [blame]
Shock Jiang010a4ae2014-11-26 14:55:19 -08001rule
2{
3 id "NDNS Validator"
4 for data
5 checker
6 {
7 type customized
8 sig-type rsa-sha256
9 key-locator
10 {
11 type name
12 hyper-relation
13 {
14 k-regex ^(<>*)<KEY>(<>*)<><ID-CERT>$
15 k-expand \\1\\2
16 h-relation is-prefix-of ; data is only allowed to be signed by the zone key
17 p-regex ^(<>*)[<KEY><NDNS>](<>*)<><>$
18 p-expand \\1\\2
19 }
20 }
21 }
22}
23
24trust-anchor
25{
26 type file
27 file-name anchors/ndn-testbed-root.ndncert.base64
28}