34d002d695
`func (nc *NebulaCertificate) VerifyPrivateKey(key []byte) error` would previously return an error even if passed the correct private key for a CA certificate `nc`. That function has been updated to support CA certificates, and nebula-cert now calls it before signing a new certificate. Previously, it would perform all constraint checks against the CA certificate provided, take a SHA256 fingerprint of the provided certificate, insert it into the new node certificate, and then finally sign it with the mismatching private key provided. |
||
---|---|---|
.. | ||
Makefile | ||
README.md | ||
ca.go | ||
cert.go | ||
cert.pb.go | ||
cert.proto | ||
cert_test.go |
README.md
cert
This is a library for interacting with nebula
style certificates and authorities.
A protobuf
definition of the certificate format is also included
Compiling the protobuf definition
Make sure you have protoc
installed.
To compile for go
with the same version of protobuf specified in go.mod:
make