forked from panzi/verify-ehc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrustlist-cbor.schema.json
80 lines (80 loc) · 3.46 KB
/
trustlist-cbor.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "CBOR Trust List Format",
"description": "The file format written by this tool when using --save-certs=*.cbor [--allow-public-key-only] or read when using --certs-file=*.cbor\nWhile it is a CBOR file I also use JSON Schema to describe the format.",
"type": "object",
"required": [
"c"
],
"properties": {
"c": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"required": [
"i",
"c"
],
"properties": {
"i": {
"type": "string",
"format": "binary",
"description": "Key ID"
},
"c": {
"type": "string",
"format": "binary",
"description": "DER encoded x509 certificate"
}
}
},
{
"type": "object",
"required": [
"i",
"k"
],
"properties": {
"i": {
"type": "string",
"format": "binary",
"description": "Key ID"
},
"k": {
"type": "string",
"format": "binary",
"description": "DER encoded public key"
},
"is": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Issuer name key-value pairs using defined short attribute names like 'C' for 2.5.4.6 (country name) and full dotted strings otherwise."
},
"su": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Subject name key-value pairs using defined short attribute names like 'C' for 2.5.4.6 (country name) and full dotted strings otherwise."
},
"nb": {
"type": "number",
"format": "integer",
"description": "Seconds after Unix epoch. The public key is not valid before this point in time."
},
"na": {
"type": "number",
"format": "integer",
"description": "Seconds after Unix epoch. The public key is not valid after this point in time."
}
}
}
]
}
}
}
}