John Maguire 2dc30fc300 Support 32-bit machines in crypto test (#1394) 11 месяцев назад
..
Makefile 08ac65362e Cert interface (#1212) 1 год назад
README.md d97ed57a19 V2 certificate format (#1216) 1 год назад
asn1.go d97ed57a19 V2 certificate format (#1216) 1 год назад
ca_pool.go d97ed57a19 V2 certificate format (#1216) 1 год назад
ca_pool_test.go 088af8edb2 Enable running testifylint in CI (#1350) 1 год назад
cert.go f8734ffa43 Improve logging when handshaking with an invalid cert (#1345) 1 год назад
cert_v1.go 879852c32a upgrade to yaml.v3 (#1148) 1 год назад
cert_v1.pb.go 08ac65362e Cert interface (#1212) 1 год назад
cert_v1.proto 08ac65362e Cert interface (#1212) 1 год назад
cert_v1_test.go 088af8edb2 Enable running testifylint in CI (#1350) 1 год назад
cert_v2.asn1 d97ed57a19 V2 certificate format (#1216) 1 год назад
cert_v2.go d97ed57a19 V2 certificate format (#1216) 1 год назад
cert_v2_test.go 088af8edb2 Enable running testifylint in CI (#1350) 1 год назад
crypto.go 08ac65362e Cert interface (#1212) 1 год назад
crypto_test.go 2dc30fc300 Support 32-bit machines in crypto test (#1394) 11 месяцев назад
errors.go d97ed57a19 V2 certificate format (#1216) 1 год назад
helper_test.go d97ed57a19 V2 certificate format (#1216) 1 год назад
pem.go d97ed57a19 V2 certificate format (#1216) 1 год назад
pem_test.go 088af8edb2 Enable running testifylint in CI (#1350) 1 год назад
sign.go d97ed57a19 V2 certificate format (#1216) 1 год назад
sign_test.go 088af8edb2 Enable running testifylint in CI (#1350) 1 год назад

README.md

cert

This is a library for interacting with nebula style certificates and authorities.

There are now 2 versions of nebula certificates:

v1

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.

To compile for go with the same version of protobuf specified in go.mod:

make proto

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.