cert.proto 625 B

123456789101112131415161718192021222324252627
  1. syntax = "proto3";
  2. package cert;
  3. //import "google/protobuf/timestamp.proto";
  4. message RawNebulaCertificate {
  5. RawNebulaCertificateDetails Details = 1;
  6. bytes Signature = 2;
  7. }
  8. message RawNebulaCertificateDetails {
  9. string Name = 1;
  10. // Ips and Subnets are in big endian 32 bit pairs, 1st the ip, 2nd the mask
  11. repeated uint32 Ips = 2;
  12. repeated uint32 Subnets = 3;
  13. repeated string Groups = 4;
  14. int64 NotBefore = 5;
  15. int64 NotAfter = 6;
  16. bytes PublicKey = 7;
  17. bool IsCA = 8;
  18. // sha-256 of the issuer certificate, if this field is blank the cert is self-signed
  19. bytes Issuer = 9;
  20. }