mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-08 22:43:57 +01:00
`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.
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