2019-11-19 10:00:20 -07:00
|
|
|
## `cert`
|
|
|
|
|
|
|
|
This is a library for interacting with `nebula` style certificates and authorities.
|
|
|
|
|
2024-10-23 21:02:10 -06:00
|
|
|
There are now 2 versions of `nebula` certificates:
|
2019-11-19 10:00:20 -07:00
|
|
|
|
2024-10-23 21:02:10 -06:00
|
|
|
## v1
|
2019-11-19 10:00:20 -07:00
|
|
|
|
2024-10-23 21:02:10 -06:00
|
|
|
This version is deprecated.
|
|
|
|
|
|
|
|
A `protobuf` definition of the certificate format is included at `cert_v1.proto`
|
|
|
|
|
|
|
|
To compile the definition you will need `protoc` installed.
|
2019-11-19 10:00:20 -07:00
|
|
|
|
|
|
|
To compile for `go` with the same version of protobuf specified in go.mod:
|
|
|
|
|
|
|
|
```bash
|
2024-10-23 21:02:10 -06:00
|
|
|
make proto
|
2019-11-19 10:00:20 -07:00
|
|
|
```
|
2024-10-23 21:02:10 -06:00
|
|
|
|
|
|
|
## v2
|
|
|
|
|
|
|
|
This is the latest version which uses asn.1 DER encoding. It can support ipv4 and ipv6 and tolerate
|
|
|
|
future certificate changes better than v1.
|
|
|
|
|
|
|
|
`cert_v2.asn1` defines the wire format and can be used to compile marshalers.
|