| 1 |
Nebula DEFINITIONS AUTOMATIC TAGS ::= BEGIN |
| 2 |
|
| 3 |
Name ::= UTF8String (SIZE (1..253)) |
| 4 |
Time ::= INTEGER (0..18446744073709551615) -- Seconds since unix epoch, uint64 maximum |
| 5 |
Network ::= OCTET STRING (SIZE (5,17)) -- IP addresses are 4 or 16 bytes + 1 byte for the prefix length |
| 6 |
Curve ::= ENUMERATED { |
| 7 |
curve25519 (0), |
| 8 |
p256 (1) |
| 9 |
} |
| 10 |
|
| 11 |
-- The maximum size of a certificate must not exceed 65536 bytes |
| 12 |
Certificate ::= SEQUENCE { |
| 13 |
details OCTET STRING, |
| 14 |
curve Curve DEFAULT curve25519, |
| 15 |
publicKey OCTET STRING, |
| 16 |
-- signature(details + curve + publicKey) using the appropriate method for curve |
| 17 |
signature OCTET STRING |
| 18 |
} |
| 19 |
|
| 20 |
Details ::= SEQUENCE { |
| 21 |
name Name, |
| 22 |
|
| 23 |
-- At least 1 ipv4 or ipv6 address must be present if isCA is false |
| 24 |
networks SEQUENCE OF Network OPTIONAL, |
| 25 |
unsafeNetworks SEQUENCE OF Network OPTIONAL, |
| 26 |
groups SEQUENCE OF Name OPTIONAL, |
| 27 |
isCA BOOLEAN DEFAULT false, |
| 28 |
notBefore Time, |
| 29 |
notAfter Time, |
| 30 |
|
| 31 |
-- issuer is only required if isCA is false, if isCA is true then it must not be present |
| 32 |
issuer OCTET STRING OPTIONAL, |
| 33 |
... |
| 34 |
-- New fields can be added below here |
| 35 |
} |
| 36 |
|
| 37 |
END |