mirror of
https://github.com/hanzoai/ca.git
synced 2026-11-03 18:08:27 +00:00
* Fix issues F-003, 006, 001, 022
* Fix issues F-025, 026, 010, 008
- Login tokens name their identity provider in the `provider` claim;
SelectOrg and GetUserToken read it with pb.IDPFromString, which also
takes the number older tokens carry, and AuthenticateAPIKey answers
Provider Undefined.
- A login that fails after the callback decodes its state lands on the
redirect URI of the client, in its response mode, with `error` and
`error_description` (RFC 6749 section 4.1.2.1); a server-side failure
is described by its status text only. The calls to an IdP take the
request context and a client with a timeout, and the answer of the IdP
stays in the server log.
- The platform bootstrap reads its ca-config with ca.LoadBootstrapConfig,
which refuses an issuer URL template with `${ISSUER_ID}` or
`$ISSUER_ID`: the loader expands them to an empty string. The proto,
README and CLI help name `:ISSUER_ID`.
- CaDb.RegisterIssuer takes the trust anchor of a root issuer and writes
both in one transaction; the backend service and the bootstrap pass it,
and an anchor registered in another scope is AlreadyExists.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Address PR review comments
- Invite acceptance deletes the invite in its transaction
(query.TakeInvite, DELETE ... RETURNING) and grants from the deleted
row: a withdrawn or already accepted invite grants nothing, a re-issued
one grants its current role, and an email mismatch, an expired invite or
a failed grant rolls the delete back.
- CaDb.RegisterIssuer requires the anchor of a root issuer and refuses one
for any other issuer; the service always builds it for a root.
- The OAuth response is merged into the query of a redirect URI that has
one, and replaces its fragment in fragment mode.
- The codemap describes the transactions of RegisterOrg and the invite
acceptance.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
2721 lines
77 KiB
Go
2721 lines
77 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.12
|
|
// protoc v7.36.2
|
|
// source: pkix.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
_ "github.com/effective-security/protoc-gen-go/api"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
_ "google.golang.org/protobuf/types/descriptorpb"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// Trust defines the trust scope of a root certificate
|
|
type Trust_Enum int32
|
|
|
|
const (
|
|
// Any indicates any trust scope
|
|
Trust_Any Trust_Enum = 0
|
|
// Public indicates a publicly trusted root
|
|
Trust_Public Trust_Enum = 1
|
|
// Private indicates a private (enterprise) root
|
|
Trust_Private Trust_Enum = 2
|
|
)
|
|
|
|
// Enum value maps for Trust_Enum.
|
|
var (
|
|
Trust_Enum_name = map[int32]string{
|
|
0: "Any",
|
|
1: "Public",
|
|
2: "Private",
|
|
}
|
|
Trust_Enum_value = map[string]int32{
|
|
"Any": 0,
|
|
"Public": 1,
|
|
"Private": 2,
|
|
}
|
|
)
|
|
|
|
func (x Trust_Enum) Enum() *Trust_Enum {
|
|
p := new(Trust_Enum)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Trust_Enum) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Trust_Enum) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_pkix_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (Trust_Enum) Type() protoreflect.EnumType {
|
|
return &file_pkix_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x Trust_Enum) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Trust_Enum.Descriptor instead.
|
|
func (Trust_Enum) EnumDescriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{0, 0}
|
|
}
|
|
|
|
type EncodingFormat_Enum int32
|
|
|
|
const (
|
|
// PEM indicates that the encoding format is PEM
|
|
EncodingFormat_PEM EncodingFormat_Enum = 0
|
|
// DER indicates that the encoding format is DER
|
|
EncodingFormat_DER EncodingFormat_Enum = 1
|
|
// PKCS7 indicates that the encoding format is PKCS7
|
|
EncodingFormat_PKCS7 EncodingFormat_Enum = 2
|
|
)
|
|
|
|
// Enum value maps for EncodingFormat_Enum.
|
|
var (
|
|
EncodingFormat_Enum_name = map[int32]string{
|
|
0: "PEM",
|
|
1: "DER",
|
|
2: "PKCS7",
|
|
}
|
|
EncodingFormat_Enum_value = map[string]int32{
|
|
"PEM": 0,
|
|
"DER": 1,
|
|
"PKCS7": 2,
|
|
}
|
|
)
|
|
|
|
func (x EncodingFormat_Enum) Enum() *EncodingFormat_Enum {
|
|
p := new(EncodingFormat_Enum)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x EncodingFormat_Enum) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (EncodingFormat_Enum) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_pkix_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (EncodingFormat_Enum) Type() protoreflect.EnumType {
|
|
return &file_pkix_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x EncodingFormat_Enum) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use EncodingFormat_Enum.Descriptor instead.
|
|
func (EncodingFormat_Enum) EnumDescriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{1, 0}
|
|
}
|
|
|
|
type ReasonCode_Enum int32
|
|
|
|
const (
|
|
// Unspecified indicates that the reason code is unspecified
|
|
ReasonCode_Unspecified ReasonCode_Enum = 0
|
|
// KeyCompromise indicates that the subject key is compromised
|
|
ReasonCode_KeyCompromise ReasonCode_Enum = 1
|
|
// CACompromise indicates that the issuing CA is compromised
|
|
ReasonCode_CACompromise ReasonCode_Enum = 2
|
|
// AffiliationChanged indicates that the subject affiliation changed
|
|
ReasonCode_AffiliationChanged ReasonCode_Enum = 3
|
|
// Superseded indicates that the certificate is superseded
|
|
ReasonCode_Superseded ReasonCode_Enum = 4
|
|
// CessationOfOperation indicates that the certificate is no longer in
|
|
// operation
|
|
ReasonCode_CessationOfOperation ReasonCode_Enum = 5
|
|
// CertificateHold indicates that the certificate is on hold
|
|
ReasonCode_CertificateHold ReasonCode_Enum = 6
|
|
// RemoveFromCRL indicates that the certificate is removed from the CRL
|
|
ReasonCode_RemoveFromCRL ReasonCode_Enum = 8
|
|
// PrivilegeWithdrawn indicates that the privilege is withdrawn
|
|
ReasonCode_PrivilegeWithdrawn ReasonCode_Enum = 9
|
|
// AACompromise indicates that the attribute authority is compromised
|
|
ReasonCode_AACompromise ReasonCode_Enum = 10
|
|
)
|
|
|
|
// Enum value maps for ReasonCode_Enum.
|
|
var (
|
|
ReasonCode_Enum_name = map[int32]string{
|
|
0: "Unspecified",
|
|
1: "KeyCompromise",
|
|
2: "CACompromise",
|
|
3: "AffiliationChanged",
|
|
4: "Superseded",
|
|
5: "CessationOfOperation",
|
|
6: "CertificateHold",
|
|
8: "RemoveFromCRL",
|
|
9: "PrivilegeWithdrawn",
|
|
10: "AACompromise",
|
|
}
|
|
ReasonCode_Enum_value = map[string]int32{
|
|
"Unspecified": 0,
|
|
"KeyCompromise": 1,
|
|
"CACompromise": 2,
|
|
"AffiliationChanged": 3,
|
|
"Superseded": 4,
|
|
"CessationOfOperation": 5,
|
|
"CertificateHold": 6,
|
|
"RemoveFromCRL": 8,
|
|
"PrivilegeWithdrawn": 9,
|
|
"AACompromise": 10,
|
|
}
|
|
)
|
|
|
|
func (x ReasonCode_Enum) Enum() *ReasonCode_Enum {
|
|
p := new(ReasonCode_Enum)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x ReasonCode_Enum) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (ReasonCode_Enum) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_pkix_proto_enumTypes[2].Descriptor()
|
|
}
|
|
|
|
func (ReasonCode_Enum) Type() protoreflect.EnumType {
|
|
return &file_pkix_proto_enumTypes[2]
|
|
}
|
|
|
|
func (x ReasonCode_Enum) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use ReasonCode_Enum.Descriptor instead.
|
|
func (ReasonCode_Enum) EnumDescriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{2, 0}
|
|
}
|
|
|
|
// CertificateStatus defines status constants for certificates
|
|
type CertificateStatus_Enum int32
|
|
|
|
const (
|
|
// Unknown indicates that the certificate status is unknown
|
|
CertificateStatus_Unknown CertificateStatus_Enum = 0
|
|
// Active indicates that the certificate is active and ready to use
|
|
CertificateStatus_Active CertificateStatus_Enum = 1
|
|
// Expired indicates that the certificate is expired
|
|
CertificateStatus_Expired CertificateStatus_Enum = 2
|
|
// Revoked indicates that the certificate is revoked
|
|
CertificateStatus_Revoked CertificateStatus_Enum = 3
|
|
)
|
|
|
|
// Enum value maps for CertificateStatus_Enum.
|
|
var (
|
|
CertificateStatus_Enum_name = map[int32]string{
|
|
0: "Unknown",
|
|
1: "Active",
|
|
2: "Expired",
|
|
3: "Revoked",
|
|
}
|
|
CertificateStatus_Enum_value = map[string]int32{
|
|
"Unknown": 0,
|
|
"Active": 1,
|
|
"Expired": 2,
|
|
"Revoked": 3,
|
|
}
|
|
)
|
|
|
|
func (x CertificateStatus_Enum) Enum() *CertificateStatus_Enum {
|
|
p := new(CertificateStatus_Enum)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x CertificateStatus_Enum) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (CertificateStatus_Enum) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_pkix_proto_enumTypes[3].Descriptor()
|
|
}
|
|
|
|
func (CertificateStatus_Enum) Type() protoreflect.EnumType {
|
|
return &file_pkix_proto_enumTypes[3]
|
|
}
|
|
|
|
func (x CertificateStatus_Enum) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use CertificateStatus_Enum.Descriptor instead.
|
|
func (CertificateStatus_Enum) EnumDescriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{3, 0}
|
|
}
|
|
|
|
// IssuerStatus defines lifecycle status of an issuer
|
|
type IssuerStatus_Enum int32
|
|
|
|
const (
|
|
// Unknown indicates that the issuer status is unknown
|
|
IssuerStatus_Unknown IssuerStatus_Enum = 0
|
|
// Pending indicates that the key is generated and the CSR is awaiting
|
|
// an externally signed certificate
|
|
IssuerStatus_Pending IssuerStatus_Enum = 1
|
|
// Active indicates that the issuer signs certificates
|
|
IssuerStatus_Active IssuerStatus_Enum = 2
|
|
// Archived indicates that the issuer does not sign new certificates,
|
|
// but still serves CRL and OCSP for the issued ones
|
|
IssuerStatus_Archived IssuerStatus_Enum = 3
|
|
// Destroyed indicates that the private key is destroyed;
|
|
// CRL and OCSP are no longer produced
|
|
IssuerStatus_Destroyed IssuerStatus_Enum = 4
|
|
)
|
|
|
|
// Enum value maps for IssuerStatus_Enum.
|
|
var (
|
|
IssuerStatus_Enum_name = map[int32]string{
|
|
0: "Unknown",
|
|
1: "Pending",
|
|
2: "Active",
|
|
3: "Archived",
|
|
4: "Destroyed",
|
|
}
|
|
IssuerStatus_Enum_value = map[string]int32{
|
|
"Unknown": 0,
|
|
"Pending": 1,
|
|
"Active": 2,
|
|
"Archived": 3,
|
|
"Destroyed": 4,
|
|
}
|
|
)
|
|
|
|
func (x IssuerStatus_Enum) Enum() *IssuerStatus_Enum {
|
|
p := new(IssuerStatus_Enum)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x IssuerStatus_Enum) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (IssuerStatus_Enum) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_pkix_proto_enumTypes[4].Descriptor()
|
|
}
|
|
|
|
func (IssuerStatus_Enum) Type() protoreflect.EnumType {
|
|
return &file_pkix_proto_enumTypes[4]
|
|
}
|
|
|
|
func (x IssuerStatus_Enum) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use IssuerStatus_Enum.Descriptor instead.
|
|
func (IssuerStatus_Enum) EnumDescriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{4, 0}
|
|
}
|
|
|
|
// AuthorityType defines type constants for authorities
|
|
type AuthorityType_Enum int32
|
|
|
|
const (
|
|
// Unknown indicates that the authority type is unknown
|
|
AuthorityType_Unknown AuthorityType_Enum = 0
|
|
// Root indicates a self-signed root authority
|
|
AuthorityType_Root AuthorityType_Enum = 1
|
|
// Intermediate indicates an intermediate authority that only signs
|
|
// subordinate CAs
|
|
AuthorityType_Intermediate AuthorityType_Enum = 2
|
|
// Issuing indicates an issuing authority for end-entity certificates
|
|
AuthorityType_Issuing AuthorityType_Enum = 3
|
|
// Shaken indicates a STIR/SHAKEN authority
|
|
AuthorityType_Shaken AuthorityType_Enum = 4
|
|
// ShakenDelegated indicates a STIR/SHAKEN Delegated authority
|
|
AuthorityType_ShakenDelegated AuthorityType_Enum = 5
|
|
)
|
|
|
|
// Enum value maps for AuthorityType_Enum.
|
|
var (
|
|
AuthorityType_Enum_name = map[int32]string{
|
|
0: "Unknown",
|
|
1: "Root",
|
|
2: "Intermediate",
|
|
3: "Issuing",
|
|
4: "Shaken",
|
|
5: "ShakenDelegated",
|
|
}
|
|
AuthorityType_Enum_value = map[string]int32{
|
|
"Unknown": 0,
|
|
"Root": 1,
|
|
"Intermediate": 2,
|
|
"Issuing": 3,
|
|
"Shaken": 4,
|
|
"ShakenDelegated": 5,
|
|
}
|
|
)
|
|
|
|
func (x AuthorityType_Enum) Enum() *AuthorityType_Enum {
|
|
p := new(AuthorityType_Enum)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x AuthorityType_Enum) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (AuthorityType_Enum) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_pkix_proto_enumTypes[5].Descriptor()
|
|
}
|
|
|
|
func (AuthorityType_Enum) Type() protoreflect.EnumType {
|
|
return &file_pkix_proto_enumTypes[5]
|
|
}
|
|
|
|
func (x AuthorityType_Enum) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use AuthorityType_Enum.Descriptor instead.
|
|
func (AuthorityType_Enum) EnumDescriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{5, 0}
|
|
}
|
|
|
|
type Trust struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Trust) Reset() {
|
|
*x = Trust{}
|
|
mi := &file_pkix_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Trust) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Trust) ProtoMessage() {}
|
|
|
|
func (x *Trust) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Trust.ProtoReflect.Descriptor instead.
|
|
func (*Trust) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type EncodingFormat struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EncodingFormat) Reset() {
|
|
*x = EncodingFormat{}
|
|
mi := &file_pkix_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EncodingFormat) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EncodingFormat) ProtoMessage() {}
|
|
|
|
func (x *EncodingFormat) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EncodingFormat.ProtoReflect.Descriptor instead.
|
|
func (*EncodingFormat) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
// ReasonCode specifies Certificate Revocation Reason from RFC 5280
|
|
//
|
|
// CRLReason ::= ENUMERATED {
|
|
// unspecified (0),
|
|
// keyCompromise (1),
|
|
// cACompromise (2),
|
|
// affiliationChanged (3),
|
|
// superseded (4),
|
|
// cessationOfOperation (5),
|
|
// certificateHold (6),
|
|
// -- value 7 is not used
|
|
// removeFromCRL (8),
|
|
// privilegeWithdrawn (9),
|
|
// aACompromise (10)
|
|
// }
|
|
type ReasonCode struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ReasonCode) Reset() {
|
|
*x = ReasonCode{}
|
|
mi := &file_pkix_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ReasonCode) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ReasonCode) ProtoMessage() {}
|
|
|
|
func (x *ReasonCode) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ReasonCode.ProtoReflect.Descriptor instead.
|
|
func (*ReasonCode) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type CertificateStatus struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CertificateStatus) Reset() {
|
|
*x = CertificateStatus{}
|
|
mi := &file_pkix_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CertificateStatus) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CertificateStatus) ProtoMessage() {}
|
|
|
|
func (x *CertificateStatus) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CertificateStatus.ProtoReflect.Descriptor instead.
|
|
func (*CertificateStatus) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
type IssuerStatus struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *IssuerStatus) Reset() {
|
|
*x = IssuerStatus{}
|
|
mi := &file_pkix_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *IssuerStatus) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*IssuerStatus) ProtoMessage() {}
|
|
|
|
func (x *IssuerStatus) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use IssuerStatus.ProtoReflect.Descriptor instead.
|
|
func (*IssuerStatus) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
type AuthorityType struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AuthorityType) Reset() {
|
|
*x = AuthorityType{}
|
|
mi := &file_pkix_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AuthorityType) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AuthorityType) ProtoMessage() {}
|
|
|
|
func (x *AuthorityType) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AuthorityType.ProtoReflect.Descriptor instead.
|
|
func (*AuthorityType) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
// RootCertificate provides X509 Root Certificate information
|
|
type RootCertificate struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// ID of the root certificate
|
|
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
// OrgID of the owning org; empty for platform roots
|
|
OrgID string `protobuf:"bytes,2,opt,name=OrgID,proto3" json:"OrgID,omitempty"`
|
|
// SKID provides Subject Key Identifier
|
|
SKID string `protobuf:"bytes,3,opt,name=SKID,proto3" json:"SKID,omitempty"`
|
|
// NotBefore is the time when the validity period starts in RFC3339 format
|
|
NotBefore string `protobuf:"bytes,4,opt,name=NotBefore,proto3" json:"NotBefore,omitempty"`
|
|
// NotAfter is the time when the validity period ends in RFC3339 format
|
|
NotAfter string `protobuf:"bytes,5,opt,name=NotAfter,proto3" json:"NotAfter,omitempty"`
|
|
// Subject name
|
|
Subject string `protobuf:"bytes,6,opt,name=Subject,proto3" json:"Subject,omitempty"`
|
|
// Sha256 thumbprint of the cert
|
|
Sha256 string `protobuf:"bytes,7,opt,name=Sha256,proto3" json:"Sha256,omitempty"`
|
|
// Trust scope
|
|
Trust Trust_Enum `protobuf:"varint,8,opt,name=Trust,proto3,enum=pb.Trust_Enum" json:"Trust,omitempty"`
|
|
// Pem encoded certificate
|
|
Pem string `protobuf:"bytes,9,opt,name=Pem,proto3" json:"Pem,omitempty"`
|
|
// CreatedAt is the registration time in RFC3339 format
|
|
CreatedAt string `protobuf:"bytes,10,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RootCertificate) Reset() {
|
|
*x = RootCertificate{}
|
|
mi := &file_pkix_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RootCertificate) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RootCertificate) ProtoMessage() {}
|
|
|
|
func (x *RootCertificate) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RootCertificate.ProtoReflect.Descriptor instead.
|
|
func (*RootCertificate) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *RootCertificate) GetID() string {
|
|
if x != nil {
|
|
return x.ID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RootCertificate) GetOrgID() string {
|
|
if x != nil {
|
|
return x.OrgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RootCertificate) GetSKID() string {
|
|
if x != nil {
|
|
return x.SKID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RootCertificate) GetNotBefore() string {
|
|
if x != nil {
|
|
return x.NotBefore
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RootCertificate) GetNotAfter() string {
|
|
if x != nil {
|
|
return x.NotAfter
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RootCertificate) GetSubject() string {
|
|
if x != nil {
|
|
return x.Subject
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RootCertificate) GetSha256() string {
|
|
if x != nil {
|
|
return x.Sha256
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RootCertificate) GetTrust() Trust_Enum {
|
|
if x != nil {
|
|
return x.Trust
|
|
}
|
|
return Trust_Any
|
|
}
|
|
|
|
func (x *RootCertificate) GetPem() string {
|
|
if x != nil {
|
|
return x.Pem
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RootCertificate) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Certificate provides X509 Certificate information
|
|
type Certificate struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// ID of the certificate
|
|
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
// OrgID of the owning org
|
|
OrgID string `protobuf:"bytes,2,opt,name=OrgID,proto3" json:"OrgID,omitempty"`
|
|
// ProjectID of the owning project; empty for org-wide certificates
|
|
ProjectID string `protobuf:"bytes,3,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
// SKID provides Subject Key Identifier
|
|
SKID string `protobuf:"bytes,4,opt,name=SKID,proto3" json:"SKID,omitempty"`
|
|
// IKID provides Issuer Key Identifier
|
|
IKID string `protobuf:"bytes,5,opt,name=IKID,proto3" json:"IKID,omitempty"`
|
|
// SerialNumber provides Serial Number
|
|
SerialNumber string `protobuf:"bytes,6,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
|
|
// NotBefore is the time when the validity period starts in RFC3339 format
|
|
NotBefore string `protobuf:"bytes,7,opt,name=NotBefore,proto3" json:"NotBefore,omitempty"`
|
|
// NotAfter is the time when the validity period ends in RFC3339 format
|
|
NotAfter string `protobuf:"bytes,8,opt,name=NotAfter,proto3" json:"NotAfter,omitempty"`
|
|
// Subject name
|
|
Subject string `protobuf:"bytes,9,opt,name=Subject,proto3" json:"Subject,omitempty"`
|
|
// Issuer name
|
|
Issuer string `protobuf:"bytes,10,opt,name=Issuer,proto3" json:"Issuer,omitempty"`
|
|
// Sha256 thumbprint of the cert
|
|
Sha256 string `protobuf:"bytes,11,opt,name=Sha256,proto3" json:"Sha256,omitempty"`
|
|
// Profile used to issue the certificate
|
|
Profile string `protobuf:"bytes,12,opt,name=Profile,proto3" json:"Profile,omitempty"`
|
|
// Pem encoded certificate
|
|
Pem string `protobuf:"bytes,13,opt,name=Pem,proto3" json:"Pem,omitempty"`
|
|
// IssuersPem provides PEM encoded issuers chain
|
|
IssuersPem string `protobuf:"bytes,14,opt,name=IssuersPem,proto3" json:"IssuersPem,omitempty"`
|
|
// Locations of the published certificate
|
|
Locations []string `protobuf:"bytes,15,rep,name=Locations,proto3" json:"Locations,omitempty"`
|
|
// Label of the certificate provided by the client
|
|
Label string `protobuf:"bytes,16,opt,name=Label,proto3" json:"Label,omitempty"`
|
|
// Metadata of the certificate provided by the client
|
|
Metadata map[string]string `protobuf:"bytes,17,rep,name=Metadata,proto3" json:"Metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
// Status of the certificate
|
|
Status CertificateStatus_Enum `protobuf:"varint,18,opt,name=Status,proto3,enum=pb.CertificateStatus_Enum" json:"Status,omitempty"`
|
|
// CreatedAt is the issuance time in RFC3339 format
|
|
CreatedAt string `protobuf:"bytes,19,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Certificate) Reset() {
|
|
*x = Certificate{}
|
|
mi := &file_pkix_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Certificate) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Certificate) ProtoMessage() {}
|
|
|
|
func (x *Certificate) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Certificate.ProtoReflect.Descriptor instead.
|
|
func (*Certificate) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *Certificate) GetID() string {
|
|
if x != nil {
|
|
return x.ID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Certificate) GetOrgID() string {
|
|
if x != nil {
|
|
return x.OrgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Certificate) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Certificate) GetSKID() string {
|
|
if x != nil {
|
|
return x.SKID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Certificate) GetIKID() string {
|
|
if x != nil {
|
|
return x.IKID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Certificate) GetSerialNumber() string {
|
|
if x != nil {
|
|
return x.SerialNumber
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Certificate) GetNotBefore() string {
|
|
if x != nil {
|
|
return x.NotBefore
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Certificate) GetNotAfter() string {
|
|
if x != nil {
|
|
return x.NotAfter
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Certificate) GetSubject() string {
|
|
if x != nil {
|
|
return x.Subject
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Certificate) GetIssuer() string {
|
|
if x != nil {
|
|
return x.Issuer
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Certificate) GetSha256() string {
|
|
if x != nil {
|
|
return x.Sha256
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Certificate) GetProfile() string {
|
|
if x != nil {
|
|
return x.Profile
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Certificate) GetPem() string {
|
|
if x != nil {
|
|
return x.Pem
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Certificate) GetIssuersPem() string {
|
|
if x != nil {
|
|
return x.IssuersPem
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Certificate) GetLocations() []string {
|
|
if x != nil {
|
|
return x.Locations
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Certificate) GetLabel() string {
|
|
if x != nil {
|
|
return x.Label
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Certificate) GetMetadata() map[string]string {
|
|
if x != nil {
|
|
return x.Metadata
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Certificate) GetStatus() CertificateStatus_Enum {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return CertificateStatus_Unknown
|
|
}
|
|
|
|
func (x *Certificate) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// RevokedCertificate provides revoked X509 Certificate information
|
|
type RevokedCertificate struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Certificate provides the revoked certificate
|
|
Certificate *Certificate `protobuf:"bytes,1,opt,name=Certificate,proto3" json:"Certificate,omitempty"`
|
|
// RevokedAt is the revocation time in RFC3339 format
|
|
RevokedAt string `protobuf:"bytes,2,opt,name=RevokedAt,proto3" json:"RevokedAt,omitempty"`
|
|
// Reason of the revocation
|
|
Reason ReasonCode_Enum `protobuf:"varint,3,opt,name=Reason,proto3,enum=pb.ReasonCode_Enum" json:"Reason,omitempty"`
|
|
// ReasonText provides optional free-form revocation note
|
|
ReasonText string `protobuf:"bytes,4,opt,name=ReasonText,proto3" json:"ReasonText,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RevokedCertificate) Reset() {
|
|
*x = RevokedCertificate{}
|
|
mi := &file_pkix_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RevokedCertificate) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RevokedCertificate) ProtoMessage() {}
|
|
|
|
func (x *RevokedCertificate) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RevokedCertificate.ProtoReflect.Descriptor instead.
|
|
func (*RevokedCertificate) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *RevokedCertificate) GetCertificate() *Certificate {
|
|
if x != nil {
|
|
return x.Certificate
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RevokedCertificate) GetRevokedAt() string {
|
|
if x != nil {
|
|
return x.RevokedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RevokedCertificate) GetReason() ReasonCode_Enum {
|
|
if x != nil {
|
|
return x.Reason
|
|
}
|
|
return ReasonCode_Unspecified
|
|
}
|
|
|
|
func (x *RevokedCertificate) GetReasonText() string {
|
|
if x != nil {
|
|
return x.ReasonText
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Crl provides X509 CRL information
|
|
type Crl struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// ID of the CRL
|
|
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
// OrgID of the issuer's org
|
|
OrgID string `protobuf:"bytes,2,opt,name=OrgID,proto3" json:"OrgID,omitempty"`
|
|
// IssuerID of the issuer
|
|
IssuerID string `protobuf:"bytes,3,opt,name=IssuerID,proto3" json:"IssuerID,omitempty"`
|
|
// IKID provides Issuer Key Identifier
|
|
IKID string `protobuf:"bytes,4,opt,name=IKID,proto3" json:"IKID,omitempty"`
|
|
// Number is the monotonic CRL number
|
|
Number string `protobuf:"bytes,5,opt,name=Number,proto3" json:"Number,omitempty"`
|
|
// ThisUpdate is the time when the CRL was issued in RFC3339 format
|
|
ThisUpdate string `protobuf:"bytes,6,opt,name=ThisUpdate,proto3" json:"ThisUpdate,omitempty"`
|
|
// NextUpdate is the time for the next update in RFC3339 format
|
|
NextUpdate string `protobuf:"bytes,7,opt,name=NextUpdate,proto3" json:"NextUpdate,omitempty"`
|
|
// Issuer name
|
|
Issuer string `protobuf:"bytes,8,opt,name=Issuer,proto3" json:"Issuer,omitempty"`
|
|
// Pem encoded CRL
|
|
Pem string `protobuf:"bytes,9,opt,name=Pem,proto3" json:"Pem,omitempty"`
|
|
// Locations of the published CRL
|
|
Locations []string `protobuf:"bytes,10,rep,name=Locations,proto3" json:"Locations,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Crl) Reset() {
|
|
*x = Crl{}
|
|
mi := &file_pkix_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Crl) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Crl) ProtoMessage() {}
|
|
|
|
func (x *Crl) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Crl.ProtoReflect.Descriptor instead.
|
|
func (*Crl) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *Crl) GetID() string {
|
|
if x != nil {
|
|
return x.ID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Crl) GetOrgID() string {
|
|
if x != nil {
|
|
return x.OrgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Crl) GetIssuerID() string {
|
|
if x != nil {
|
|
return x.IssuerID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Crl) GetIKID() string {
|
|
if x != nil {
|
|
return x.IKID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Crl) GetNumber() string {
|
|
if x != nil {
|
|
return x.Number
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Crl) GetThisUpdate() string {
|
|
if x != nil {
|
|
return x.ThisUpdate
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Crl) GetNextUpdate() string {
|
|
if x != nil {
|
|
return x.NextUpdate
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Crl) GetIssuer() string {
|
|
if x != nil {
|
|
return x.Issuer
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Crl) GetPem() string {
|
|
if x != nil {
|
|
return x.Pem
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Crl) GetLocations() []string {
|
|
if x != nil {
|
|
return x.Locations
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// X509Name specifies X509 Name
|
|
type X509Name struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Country string `protobuf:"bytes,1,opt,name=Country,proto3" json:"Country,omitempty"`
|
|
State string `protobuf:"bytes,2,opt,name=State,proto3" json:"State,omitempty"`
|
|
Locality string `protobuf:"bytes,3,opt,name=Locality,proto3" json:"Locality,omitempty"`
|
|
Organisation string `protobuf:"bytes,4,opt,name=Organisation,proto3" json:"Organisation,omitempty"`
|
|
OrganisationalUnit string `protobuf:"bytes,5,opt,name=OrganisationalUnit,proto3" json:"OrganisationalUnit,omitempty"`
|
|
SerialNumber string `protobuf:"bytes,6,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *X509Name) Reset() {
|
|
*x = X509Name{}
|
|
mi := &file_pkix_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *X509Name) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*X509Name) ProtoMessage() {}
|
|
|
|
func (x *X509Name) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use X509Name.ProtoReflect.Descriptor instead.
|
|
func (*X509Name) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *X509Name) GetCountry() string {
|
|
if x != nil {
|
|
return x.Country
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *X509Name) GetState() string {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *X509Name) GetLocality() string {
|
|
if x != nil {
|
|
return x.Locality
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *X509Name) GetOrganisation() string {
|
|
if x != nil {
|
|
return x.Organisation
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *X509Name) GetOrganisationalUnit() string {
|
|
if x != nil {
|
|
return x.OrganisationalUnit
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *X509Name) GetSerialNumber() string {
|
|
if x != nil {
|
|
return x.SerialNumber
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// X509Subject specifies X509 Subject
|
|
type X509Subject struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CommonName string `protobuf:"bytes,1,opt,name=CommonName,proto3" json:"CommonName,omitempty"`
|
|
Names []*X509Name `protobuf:"bytes,2,rep,name=Names,proto3" json:"Names,omitempty"`
|
|
SerialNumber string `protobuf:"bytes,3,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *X509Subject) Reset() {
|
|
*x = X509Subject{}
|
|
mi := &file_pkix_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *X509Subject) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*X509Subject) ProtoMessage() {}
|
|
|
|
func (x *X509Subject) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use X509Subject.ProtoReflect.Descriptor instead.
|
|
func (*X509Subject) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *X509Subject) GetCommonName() string {
|
|
if x != nil {
|
|
return x.CommonName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *X509Subject) GetNames() []*X509Name {
|
|
if x != nil {
|
|
return x.Names
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *X509Subject) GetSerialNumber() string {
|
|
if x != nil {
|
|
return x.SerialNumber
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// CAConstraint specifies various CA constraints on the signed certificate.
|
|
// CAConstraint would verify against (and override) the CA
|
|
// extensions in the given CSR.
|
|
type CAConstraint struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
IsCA bool `protobuf:"varint,1,opt,name=IsCA,proto3" json:"IsCA,omitempty"`
|
|
MaxPathLen int32 `protobuf:"varint,2,opt,name=MaxPathLen,proto3" json:"MaxPathLen,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CAConstraint) Reset() {
|
|
*x = CAConstraint{}
|
|
mi := &file_pkix_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CAConstraint) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CAConstraint) ProtoMessage() {}
|
|
|
|
func (x *CAConstraint) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CAConstraint.ProtoReflect.Descriptor instead.
|
|
func (*CAConstraint) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *CAConstraint) GetIsCA() bool {
|
|
if x != nil {
|
|
return x.IsCA
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CAConstraint) GetMaxPathLen() int32 {
|
|
if x != nil {
|
|
return x.MaxPathLen
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// CSRAllowedFields specifies which fields may be copied from a CSR
|
|
type CSRAllowedFields struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Subject bool `protobuf:"varint,1,opt,name=Subject,proto3" json:"Subject,omitempty"`
|
|
Dns bool `protobuf:"varint,2,opt,name=Dns,proto3" json:"Dns,omitempty"`
|
|
Ip bool `protobuf:"varint,3,opt,name=Ip,proto3" json:"Ip,omitempty"`
|
|
Email bool `protobuf:"varint,4,opt,name=Email,proto3" json:"Email,omitempty"`
|
|
Uri bool `protobuf:"varint,5,opt,name=Uri,proto3" json:"Uri,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CSRAllowedFields) Reset() {
|
|
*x = CSRAllowedFields{}
|
|
mi := &file_pkix_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CSRAllowedFields) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CSRAllowedFields) ProtoMessage() {}
|
|
|
|
func (x *CSRAllowedFields) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CSRAllowedFields.ProtoReflect.Descriptor instead.
|
|
func (*CSRAllowedFields) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *CSRAllowedFields) GetSubject() bool {
|
|
if x != nil {
|
|
return x.Subject
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CSRAllowedFields) GetDns() bool {
|
|
if x != nil {
|
|
return x.Dns
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CSRAllowedFields) GetIp() bool {
|
|
if x != nil {
|
|
return x.Ip
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CSRAllowedFields) GetEmail() bool {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CSRAllowedFields) GetUri() bool {
|
|
if x != nil {
|
|
return x.Uri
|
|
}
|
|
return false
|
|
}
|
|
|
|
// CertificatePolicyQualifier specifies a policy qualifier: id-qt-cps or
|
|
// id-qt-unotice
|
|
type CertificatePolicyQualifier struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Type string `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"`
|
|
Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CertificatePolicyQualifier) Reset() {
|
|
*x = CertificatePolicyQualifier{}
|
|
mi := &file_pkix_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CertificatePolicyQualifier) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CertificatePolicyQualifier) ProtoMessage() {}
|
|
|
|
func (x *CertificatePolicyQualifier) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CertificatePolicyQualifier.ProtoReflect.Descriptor instead.
|
|
func (*CertificatePolicyQualifier) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *CertificatePolicyQualifier) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CertificatePolicyQualifier) GetValue() string {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// CertificatePolicy specifies a Certificate Policy extension entry
|
|
type CertificatePolicy struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// ID is OID of Certificate Policy
|
|
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
Qualifiers []*CertificatePolicyQualifier `protobuf:"bytes,2,rep,name=Qualifiers,proto3" json:"Qualifiers,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CertificatePolicy) Reset() {
|
|
*x = CertificatePolicy{}
|
|
mi := &file_pkix_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CertificatePolicy) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CertificatePolicy) ProtoMessage() {}
|
|
|
|
func (x *CertificatePolicy) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CertificatePolicy.ProtoReflect.Descriptor instead.
|
|
func (*CertificatePolicy) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *CertificatePolicy) GetID() string {
|
|
if x != nil {
|
|
return x.ID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CertificatePolicy) GetQualifiers() []*CertificatePolicyQualifier {
|
|
if x != nil {
|
|
return x.Qualifiers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// X509Extension represents a raw extension to be included in the certificate.
|
|
type X509Extension struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// ID is the extension OID in dotted notation, e.g. 2.5.29.31
|
|
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
// Critical flag
|
|
Critical bool `protobuf:"varint,2,opt,name=Critical,proto3" json:"Critical,omitempty"`
|
|
// Value is hex or base64 encoded DER value of the extension
|
|
Value string `protobuf:"bytes,3,opt,name=Value,proto3" json:"Value,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *X509Extension) Reset() {
|
|
*x = X509Extension{}
|
|
mi := &file_pkix_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *X509Extension) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*X509Extension) ProtoMessage() {}
|
|
|
|
func (x *X509Extension) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use X509Extension.ProtoReflect.Descriptor instead.
|
|
func (*X509Extension) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *X509Extension) GetID() string {
|
|
if x != nil {
|
|
return x.ID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *X509Extension) GetCritical() bool {
|
|
if x != nil {
|
|
return x.Critical
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *X509Extension) GetValue() string {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// CertProfile provides certificate profile.
|
|
// The shape matches the YAML profiles in ca-config files.
|
|
type CertProfile struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// ID of the profile; empty for profiles loaded from files
|
|
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
// OrgID of the owning org; empty for platform profiles
|
|
OrgID string `protobuf:"bytes,2,opt,name=OrgID,proto3" json:"OrgID,omitempty"`
|
|
// ProjectID of the owning project; empty for org-wide profiles
|
|
ProjectID string `protobuf:"bytes,3,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
// Label is the profile name, unique per (Org, Project)
|
|
Label string `protobuf:"bytes,4,opt,name=Label,proto3" json:"Label,omitempty"`
|
|
// IssuerLabel binds the profile to an issuer of the same org.
|
|
// "*" allows any issuer that lists the profile in AllowedProfiles.
|
|
IssuerLabel string `protobuf:"bytes,5,opt,name=IssuerLabel,proto3" json:"IssuerLabel,omitempty"`
|
|
// Description of the profile
|
|
Description string `protobuf:"bytes,6,opt,name=Description,proto3" json:"Description,omitempty"`
|
|
// Usages provides a list of key usages and extended key usages
|
|
Usages []string `protobuf:"bytes,7,rep,name=Usages,proto3" json:"Usages,omitempty"`
|
|
// CAConstraint specifies the basic constraints for CA certificates
|
|
CAConstraint *CAConstraint `protobuf:"bytes,8,opt,name=CAConstraint,proto3" json:"CAConstraint,omitempty"`
|
|
// OcspNoCheck specifies to add id-pkix-ocsp-nocheck extension
|
|
OcspNoCheck bool `protobuf:"varint,9,opt,name=OcspNoCheck,proto3" json:"OcspNoCheck,omitempty"`
|
|
// Expiry specifies the validity duration, e.g. 168h
|
|
Expiry string `protobuf:"bytes,10,opt,name=Expiry,proto3" json:"Expiry,omitempty"`
|
|
// Backdate specifies the NotBefore backdate duration, e.g. 30m
|
|
Backdate string `protobuf:"bytes,11,opt,name=Backdate,proto3" json:"Backdate,omitempty"`
|
|
// Extensions specifies extensions to always add to the certificate
|
|
Extensions []*X509Extension `protobuf:"bytes,12,rep,name=Extensions,proto3" json:"Extensions,omitempty"`
|
|
// AllowedExtensions specifies OIDs of extensions allowed from the request
|
|
AllowedExtensions []string `protobuf:"bytes,13,rep,name=AllowedExtensions,proto3" json:"AllowedExtensions,omitempty"`
|
|
// AllowedNames specifies a RegExp to check for allowed names.
|
|
// If not provided, then all values are allowed
|
|
AllowedNames string `protobuf:"bytes,14,opt,name=AllowedNames,proto3" json:"AllowedNames,omitempty"`
|
|
// AllowedDns specifies a RegExp to check for allowed DNS.
|
|
// If not provided, then all values are allowed
|
|
AllowedDns string `protobuf:"bytes,15,opt,name=AllowedDns,proto3" json:"AllowedDns,omitempty"`
|
|
// AllowedEmail specifies a RegExp to check for allowed email.
|
|
// If not provided, then all values are allowed
|
|
AllowedEmail string `protobuf:"bytes,16,opt,name=AllowedEmail,proto3" json:"AllowedEmail,omitempty"`
|
|
// AllowedUri specifies a RegExp to check for allowed URI.
|
|
// If not provided, then all values are allowed
|
|
AllowedUri string `protobuf:"bytes,17,opt,name=AllowedUri,proto3" json:"AllowedUri,omitempty"`
|
|
// AllowedFields provides booleans for fields in the CSR.
|
|
// If AllowedFields is not present in a CertProfile,
|
|
// all of these fields may be copied from the CSR into the signed
|
|
// certificate. If AllowedFields *is* present in a CertProfile, only those
|
|
// fields with a `true` value in the AllowedFields may be copied from the
|
|
// CSR to the signed certificate. Note that some of these fields, like
|
|
// Subject, can be provided or partially provided through the API. Since API
|
|
// clients are expected to be trusted, but CSRs are not, fields provided
|
|
// through the API are not subject to validation through this mechanism.
|
|
AllowedFields *CSRAllowedFields `protobuf:"bytes,18,opt,name=AllowedFields,proto3" json:"AllowedFields,omitempty"`
|
|
// Policies specifies Certificate Policies to include
|
|
Policies []*CertificatePolicy `protobuf:"bytes,19,rep,name=Policies,proto3" json:"Policies,omitempty"`
|
|
// PoliciesCritical specifies to mark Policies as Critical extension
|
|
PoliciesCritical bool `protobuf:"varint,20,opt,name=PoliciesCritical,proto3" json:"PoliciesCritical,omitempty"`
|
|
// AllowedRoles specifies caller roles allowed to request the profile
|
|
AllowedRoles []string `protobuf:"bytes,21,rep,name=AllowedRoles,proto3" json:"AllowedRoles,omitempty"`
|
|
// DeniedRoles specifies caller roles denied to request the profile
|
|
DeniedRoles []string `protobuf:"bytes,22,rep,name=DeniedRoles,proto3" json:"DeniedRoles,omitempty"`
|
|
// Status of the profile
|
|
Status ItemStatus_Enum `protobuf:"varint,23,opt,name=Status,proto3,enum=pb.ItemStatus_Enum" json:"Status,omitempty"`
|
|
// CreatedAt in RFC3339 format
|
|
CreatedAt string `protobuf:"bytes,24,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
|
|
// UpdatedAt in RFC3339 format
|
|
UpdatedAt string `protobuf:"bytes,25,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CertProfile) Reset() {
|
|
*x = CertProfile{}
|
|
mi := &file_pkix_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CertProfile) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CertProfile) ProtoMessage() {}
|
|
|
|
func (x *CertProfile) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CertProfile.ProtoReflect.Descriptor instead.
|
|
func (*CertProfile) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *CertProfile) GetID() string {
|
|
if x != nil {
|
|
return x.ID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CertProfile) GetOrgID() string {
|
|
if x != nil {
|
|
return x.OrgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CertProfile) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CertProfile) GetLabel() string {
|
|
if x != nil {
|
|
return x.Label
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CertProfile) GetIssuerLabel() string {
|
|
if x != nil {
|
|
return x.IssuerLabel
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CertProfile) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CertProfile) GetUsages() []string {
|
|
if x != nil {
|
|
return x.Usages
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CertProfile) GetCAConstraint() *CAConstraint {
|
|
if x != nil {
|
|
return x.CAConstraint
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CertProfile) GetOcspNoCheck() bool {
|
|
if x != nil {
|
|
return x.OcspNoCheck
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CertProfile) GetExpiry() string {
|
|
if x != nil {
|
|
return x.Expiry
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CertProfile) GetBackdate() string {
|
|
if x != nil {
|
|
return x.Backdate
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CertProfile) GetExtensions() []*X509Extension {
|
|
if x != nil {
|
|
return x.Extensions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CertProfile) GetAllowedExtensions() []string {
|
|
if x != nil {
|
|
return x.AllowedExtensions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CertProfile) GetAllowedNames() string {
|
|
if x != nil {
|
|
return x.AllowedNames
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CertProfile) GetAllowedDns() string {
|
|
if x != nil {
|
|
return x.AllowedDns
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CertProfile) GetAllowedEmail() string {
|
|
if x != nil {
|
|
return x.AllowedEmail
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CertProfile) GetAllowedUri() string {
|
|
if x != nil {
|
|
return x.AllowedUri
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CertProfile) GetAllowedFields() *CSRAllowedFields {
|
|
if x != nil {
|
|
return x.AllowedFields
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CertProfile) GetPolicies() []*CertificatePolicy {
|
|
if x != nil {
|
|
return x.Policies
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CertProfile) GetPoliciesCritical() bool {
|
|
if x != nil {
|
|
return x.PoliciesCritical
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CertProfile) GetAllowedRoles() []string {
|
|
if x != nil {
|
|
return x.AllowedRoles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CertProfile) GetDeniedRoles() []string {
|
|
if x != nil {
|
|
return x.DeniedRoles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CertProfile) GetStatus() ItemStatus_Enum {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ItemStatus_Unknown
|
|
}
|
|
|
|
func (x *CertProfile) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CertProfile) GetUpdatedAt() string {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// IssuerSerial identifies a certificate by its issuer and serial number
|
|
type IssuerSerial struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// IKID provides Issuer Key Identifier
|
|
IKID string `protobuf:"bytes,1,opt,name=IKID,proto3" json:"IKID,omitempty"`
|
|
// SerialNumber provides certificate's serial number
|
|
SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *IssuerSerial) Reset() {
|
|
*x = IssuerSerial{}
|
|
mi := &file_pkix_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *IssuerSerial) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*IssuerSerial) ProtoMessage() {}
|
|
|
|
func (x *IssuerSerial) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use IssuerSerial.ProtoReflect.Descriptor instead.
|
|
func (*IssuerSerial) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *IssuerSerial) GetIKID() string {
|
|
if x != nil {
|
|
return x.IKID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *IssuerSerial) GetSerialNumber() string {
|
|
if x != nil {
|
|
return x.SerialNumber
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// KeySpec specifies the key to generate for an issuer
|
|
type KeySpec struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Algo specifies the key algorithm: RSA|ECDSA
|
|
Algo string `protobuf:"bytes,1,opt,name=Algo,proto3" json:"Algo,omitempty"`
|
|
// Size specifies RSA key size in bits or ECDSA curve size: 256|384|521
|
|
Size int32 `protobuf:"varint,2,opt,name=Size,proto3" json:"Size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *KeySpec) Reset() {
|
|
*x = KeySpec{}
|
|
mi := &file_pkix_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *KeySpec) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*KeySpec) ProtoMessage() {}
|
|
|
|
func (x *KeySpec) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[19]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use KeySpec.ProtoReflect.Descriptor instead.
|
|
func (*KeySpec) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *KeySpec) GetAlgo() string {
|
|
if x != nil {
|
|
return x.Algo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *KeySpec) GetSize() int32 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// IssuerConfig provides runtime settings of an issuer.
|
|
// The shape matches the `issuers[].aia` section of ca-config files.
|
|
// The URL templates name the issuer with `:ISSUER_ID`, which is replaced
|
|
// with the issuer's SKID. The API also accepts `${ISSUER_ID}`; a ca-config
|
|
// file cannot use it, since its loader expands `${...}` as an environment
|
|
// variable, and the bootstrap refuses such a file.
|
|
type IssuerConfig struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// AiaURL specifies a template for the AIA Issuer URL
|
|
AiaURL string `protobuf:"bytes,1,opt,name=AiaURL,proto3" json:"AiaURL,omitempty"`
|
|
// OcspURL specifies a template for the OCSP URL
|
|
OcspURL string `protobuf:"bytes,2,opt,name=OcspURL,proto3" json:"OcspURL,omitempty"`
|
|
// CrlURL specifies a template for the CRL Distribution Point URL
|
|
CrlURL string `protobuf:"bytes,3,opt,name=CrlURL,proto3" json:"CrlURL,omitempty"`
|
|
// CrlExpiry specifies the duration of CRL validity, e.g. 48h
|
|
CrlExpiry string `protobuf:"bytes,4,opt,name=CrlExpiry,proto3" json:"CrlExpiry,omitempty"`
|
|
// CrlRenewal specifies how long before NextUpdate the CRL is renewed
|
|
CrlRenewal string `protobuf:"bytes,5,opt,name=CrlRenewal,proto3" json:"CrlRenewal,omitempty"`
|
|
// OcspExpiry specifies the duration of OCSP response validity
|
|
OcspExpiry string `protobuf:"bytes,6,opt,name=OcspExpiry,proto3" json:"OcspExpiry,omitempty"`
|
|
// DelegatedOcspProfile specifies the profile to issue a delegated OCSP
|
|
// responder certificate; empty to sign OCSP with the issuer key
|
|
DelegatedOcspProfile string `protobuf:"bytes,7,opt,name=DelegatedOcspProfile,proto3" json:"DelegatedOcspProfile,omitempty"`
|
|
// AllowedProfiles restricts the profiles the issuer may sign.
|
|
// Required for profiles with IssuerLabel "*".
|
|
AllowedProfiles []string `protobuf:"bytes,8,rep,name=AllowedProfiles,proto3" json:"AllowedProfiles,omitempty"`
|
|
// OmitDisabledExtensions specifies to drop not allowed extensions
|
|
// instead of failing the request
|
|
OmitDisabledExtensions bool `protobuf:"varint,9,opt,name=OmitDisabledExtensions,proto3" json:"OmitDisabledExtensions,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *IssuerConfig) Reset() {
|
|
*x = IssuerConfig{}
|
|
mi := &file_pkix_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *IssuerConfig) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*IssuerConfig) ProtoMessage() {}
|
|
|
|
func (x *IssuerConfig) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[20]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use IssuerConfig.ProtoReflect.Descriptor instead.
|
|
func (*IssuerConfig) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *IssuerConfig) GetAiaURL() string {
|
|
if x != nil {
|
|
return x.AiaURL
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *IssuerConfig) GetOcspURL() string {
|
|
if x != nil {
|
|
return x.OcspURL
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *IssuerConfig) GetCrlURL() string {
|
|
if x != nil {
|
|
return x.CrlURL
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *IssuerConfig) GetCrlExpiry() string {
|
|
if x != nil {
|
|
return x.CrlExpiry
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *IssuerConfig) GetCrlRenewal() string {
|
|
if x != nil {
|
|
return x.CrlRenewal
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *IssuerConfig) GetOcspExpiry() string {
|
|
if x != nil {
|
|
return x.OcspExpiry
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *IssuerConfig) GetDelegatedOcspProfile() string {
|
|
if x != nil {
|
|
return x.DelegatedOcspProfile
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *IssuerConfig) GetAllowedProfiles() []string {
|
|
if x != nil {
|
|
return x.AllowedProfiles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *IssuerConfig) GetOmitDisabledExtensions() bool {
|
|
if x != nil {
|
|
return x.OmitDisabledExtensions
|
|
}
|
|
return false
|
|
}
|
|
|
|
// Issuer provides issuing authority information.
|
|
// Private key material is never returned.
|
|
type Issuer struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// ID of the issuer
|
|
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
// OrgID of the owning org; empty for platform issuers
|
|
OrgID string `protobuf:"bytes,2,opt,name=OrgID,proto3" json:"OrgID,omitempty"`
|
|
// ProjectID of the owning project; empty for org-wide issuers
|
|
ProjectID string `protobuf:"bytes,3,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
// Label of the issuer, unique per (Org, Project)
|
|
Label string `protobuf:"bytes,4,opt,name=Label,proto3" json:"Label,omitempty"`
|
|
// Type of the authority
|
|
Type AuthorityType_Enum `protobuf:"varint,5,opt,name=Type,proto3,enum=pb.AuthorityType_Enum" json:"Type,omitempty"`
|
|
// Status of the issuer
|
|
Status IssuerStatus_Enum `protobuf:"varint,6,opt,name=Status,proto3,enum=pb.IssuerStatus_Enum" json:"Status,omitempty"`
|
|
// ParentID of the issuer that signed this one; empty for roots and
|
|
// externally signed issuers
|
|
ParentID string `protobuf:"bytes,7,opt,name=ParentID,proto3" json:"ParentID,omitempty"`
|
|
// SKID provides Subject Key Identifier
|
|
SKID string `protobuf:"bytes,8,opt,name=SKID,proto3" json:"SKID,omitempty"`
|
|
// IKID provides Issuer Key Identifier
|
|
IKID string `protobuf:"bytes,9,opt,name=IKID,proto3" json:"IKID,omitempty"`
|
|
// SerialNumber of the issuer certificate
|
|
SerialNumber string `protobuf:"bytes,10,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
|
|
// Subject name
|
|
Subject string `protobuf:"bytes,11,opt,name=Subject,proto3" json:"Subject,omitempty"`
|
|
// Issuer name
|
|
Issuer string `protobuf:"bytes,12,opt,name=Issuer,proto3" json:"Issuer,omitempty"`
|
|
// Sha256 thumbprint of the certificate
|
|
Sha256 string `protobuf:"bytes,13,opt,name=Sha256,proto3" json:"Sha256,omitempty"`
|
|
// NotBefore in RFC3339 format
|
|
NotBefore string `protobuf:"bytes,14,opt,name=NotBefore,proto3" json:"NotBefore,omitempty"`
|
|
// NotAfter in RFC3339 format
|
|
NotAfter string `protobuf:"bytes,15,opt,name=NotAfter,proto3" json:"NotAfter,omitempty"`
|
|
// Certificate provides the issuer certificate in PEM format
|
|
Certificate string `protobuf:"bytes,16,opt,name=Certificate,proto3" json:"Certificate,omitempty"`
|
|
// Intermediates provides the intermediate CA certificates in PEM format
|
|
Intermediates string `protobuf:"bytes,17,opt,name=Intermediates,proto3" json:"Intermediates,omitempty"`
|
|
// Root provides the Root CA certificate in PEM format
|
|
Root string `protobuf:"bytes,18,opt,name=Root,proto3" json:"Root,omitempty"`
|
|
// Csr provides the PEM encoded CSR while the issuer is Pending
|
|
Csr string `protobuf:"bytes,19,opt,name=Csr,proto3" json:"Csr,omitempty"`
|
|
// KeyProvider is the crypto provider holding the private key
|
|
KeyProvider string `protobuf:"bytes,20,opt,name=KeyProvider,proto3" json:"KeyProvider,omitempty"`
|
|
// Config provides runtime settings
|
|
Config *IssuerConfig `protobuf:"bytes,21,opt,name=Config,proto3" json:"Config,omitempty"`
|
|
// Profiles specifies the list of profile labels the issuer supports
|
|
Profiles []string `protobuf:"bytes,22,rep,name=Profiles,proto3" json:"Profiles,omitempty"`
|
|
// CrlNumber is the last published CRL number
|
|
CrlNumber string `protobuf:"bytes,23,opt,name=CrlNumber,proto3" json:"CrlNumber,omitempty"`
|
|
// CreatedAt in RFC3339 format
|
|
CreatedAt string `protobuf:"bytes,24,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
|
|
// UpdatedAt in RFC3339 format
|
|
UpdatedAt string `protobuf:"bytes,25,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Issuer) Reset() {
|
|
*x = Issuer{}
|
|
mi := &file_pkix_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Issuer) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Issuer) ProtoMessage() {}
|
|
|
|
func (x *Issuer) ProtoReflect() protoreflect.Message {
|
|
mi := &file_pkix_proto_msgTypes[21]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Issuer.ProtoReflect.Descriptor instead.
|
|
func (*Issuer) Descriptor() ([]byte, []int) {
|
|
return file_pkix_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *Issuer) GetID() string {
|
|
if x != nil {
|
|
return x.ID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetOrgID() string {
|
|
if x != nil {
|
|
return x.OrgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetLabel() string {
|
|
if x != nil {
|
|
return x.Label
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetType() AuthorityType_Enum {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return AuthorityType_Unknown
|
|
}
|
|
|
|
func (x *Issuer) GetStatus() IssuerStatus_Enum {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return IssuerStatus_Unknown
|
|
}
|
|
|
|
func (x *Issuer) GetParentID() string {
|
|
if x != nil {
|
|
return x.ParentID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetSKID() string {
|
|
if x != nil {
|
|
return x.SKID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetIKID() string {
|
|
if x != nil {
|
|
return x.IKID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetSerialNumber() string {
|
|
if x != nil {
|
|
return x.SerialNumber
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetSubject() string {
|
|
if x != nil {
|
|
return x.Subject
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetIssuer() string {
|
|
if x != nil {
|
|
return x.Issuer
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetSha256() string {
|
|
if x != nil {
|
|
return x.Sha256
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetNotBefore() string {
|
|
if x != nil {
|
|
return x.NotBefore
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetNotAfter() string {
|
|
if x != nil {
|
|
return x.NotAfter
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetCertificate() string {
|
|
if x != nil {
|
|
return x.Certificate
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetIntermediates() string {
|
|
if x != nil {
|
|
return x.Intermediates
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetRoot() string {
|
|
if x != nil {
|
|
return x.Root
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetCsr() string {
|
|
if x != nil {
|
|
return x.Csr
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetKeyProvider() string {
|
|
if x != nil {
|
|
return x.KeyProvider
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetConfig() *IssuerConfig {
|
|
if x != nil {
|
|
return x.Config
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Issuer) GetProfiles() []string {
|
|
if x != nil {
|
|
return x.Profiles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Issuer) GetCrlNumber() string {
|
|
if x != nil {
|
|
return x.CrlNumber
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Issuer) GetUpdatedAt() string {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_pkix_proto protoreflect.FileDescriptor
|
|
|
|
const file_pkix_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\n" +
|
|
"pkix.proto\x12\x02pb\x1a google/protobuf/descriptor.proto\x1a\x18es/api/annotations.proto\x1a\vtypes.proto\"1\n" +
|
|
"\x05Trust\"(\n" +
|
|
"\x04Enum\x12\a\n" +
|
|
"\x03Any\x10\x00\x12\n" +
|
|
"\n" +
|
|
"\x06Public\x10\x01\x12\v\n" +
|
|
"\aPrivate\x10\x02\"5\n" +
|
|
"\x0eEncodingFormat\"#\n" +
|
|
"\x04Enum\x12\a\n" +
|
|
"\x03PEM\x10\x00\x12\a\n" +
|
|
"\x03DER\x10\x01\x12\t\n" +
|
|
"\x05PKCS7\x10\x02\"\xa8\x03\n" +
|
|
"\n" +
|
|
"ReasonCode\"\x99\x03\n" +
|
|
"\x04Enum\x12\x0f\n" +
|
|
"\vUnspecified\x10\x00\x12%\n" +
|
|
"\rKeyCompromise\x10\x01\x1a\x12\x92\xb2\x19\x0eKey Compromise\x12#\n" +
|
|
"\fCACompromise\x10\x02\x1a\x11\x92\xb2\x19\rCA Compromise\x12/\n" +
|
|
"\x12AffiliationChanged\x10\x03\x1a\x17\x92\xb2\x19\x13Affiliation Changed\x12\x1e\n" +
|
|
"\n" +
|
|
"Superseded\x10\x04\x1a\x0e\x92\xb2\x19\n" +
|
|
"Superseded\x124\n" +
|
|
"\x14CessationOfOperation\x10\x05\x1a\x1a\x92\xb2\x19\x16Cessation of Operation\x12)\n" +
|
|
"\x0fCertificateHold\x10\x06\x1a\x14\x92\xb2\x19\x10Certificate Hold\x12&\n" +
|
|
"\rRemoveFromCRL\x10\b\x1a\x13\x92\xb2\x19\x0fRemove From CRL\x12/\n" +
|
|
"\x12PrivilegeWithdrawn\x10\t\x1a\x17\x92\xb2\x19\x13Privilege Withdrawn\x12#\n" +
|
|
"\fAACompromise\x10\n" +
|
|
"\x1a\x11\x92\xb2\x19\rAA Compromise\"\x04\b\a\x10\a\"N\n" +
|
|
"\x11CertificateStatus\"9\n" +
|
|
"\x04Enum\x12\v\n" +
|
|
"\aUnknown\x10\x00\x12\n" +
|
|
"\n" +
|
|
"\x06Active\x10\x01\x12\v\n" +
|
|
"\aExpired\x10\x02\x12\v\n" +
|
|
"\aRevoked\x10\x03\"Y\n" +
|
|
"\fIssuerStatus\"I\n" +
|
|
"\x04Enum\x12\v\n" +
|
|
"\aUnknown\x10\x00\x12\v\n" +
|
|
"\aPending\x10\x01\x12\n" +
|
|
"\n" +
|
|
"\x06Active\x10\x02\x12\f\n" +
|
|
"\bArchived\x10\x03\x12\r\n" +
|
|
"\tDestroyed\x10\x04\"n\n" +
|
|
"\rAuthorityType\"]\n" +
|
|
"\x04Enum\x12\v\n" +
|
|
"\aUnknown\x10\x00\x12\b\n" +
|
|
"\x04Root\x10\x01\x12\x10\n" +
|
|
"\fIntermediate\x10\x02\x12\v\n" +
|
|
"\aIssuing\x10\x03\x12\n" +
|
|
"\n" +
|
|
"\x06Shaken\x10\x04\x12\x13\n" +
|
|
"\x0fShakenDelegated\x10\x05\"\x8d\x02\n" +
|
|
"\x0fRootCertificate\x12\x0e\n" +
|
|
"\x02ID\x18\x01 \x01(\tR\x02ID\x12\x14\n" +
|
|
"\x05OrgID\x18\x02 \x01(\tR\x05OrgID\x12\x12\n" +
|
|
"\x04SKID\x18\x03 \x01(\tR\x04SKID\x12\x1c\n" +
|
|
"\tNotBefore\x18\x04 \x01(\tR\tNotBefore\x12\x1a\n" +
|
|
"\bNotAfter\x18\x05 \x01(\tR\bNotAfter\x12\x18\n" +
|
|
"\aSubject\x18\x06 \x01(\tR\aSubject\x12\x16\n" +
|
|
"\x06Sha256\x18\a \x01(\tR\x06Sha256\x12$\n" +
|
|
"\x05Trust\x18\b \x01(\x0e2\x0e.pb.Trust.EnumR\x05Trust\x12\x10\n" +
|
|
"\x03Pem\x18\t \x01(\tR\x03Pem\x12\x1c\n" +
|
|
"\tCreatedAt\x18\n" +
|
|
" \x01(\tR\tCreatedAt\"\xeb\x04\n" +
|
|
"\vCertificate\x12\x0e\n" +
|
|
"\x02ID\x18\x01 \x01(\tR\x02ID\x12\x14\n" +
|
|
"\x05OrgID\x18\x02 \x01(\tR\x05OrgID\x12\x1c\n" +
|
|
"\tProjectID\x18\x03 \x01(\tR\tProjectID\x12\x12\n" +
|
|
"\x04SKID\x18\x04 \x01(\tR\x04SKID\x12\x12\n" +
|
|
"\x04IKID\x18\x05 \x01(\tR\x04IKID\x12\"\n" +
|
|
"\fSerialNumber\x18\x06 \x01(\tR\fSerialNumber\x12\x1c\n" +
|
|
"\tNotBefore\x18\a \x01(\tR\tNotBefore\x12\x1a\n" +
|
|
"\bNotAfter\x18\b \x01(\tR\bNotAfter\x12\x18\n" +
|
|
"\aSubject\x18\t \x01(\tR\aSubject\x12\x16\n" +
|
|
"\x06Issuer\x18\n" +
|
|
" \x01(\tR\x06Issuer\x12\x16\n" +
|
|
"\x06Sha256\x18\v \x01(\tR\x06Sha256\x12\x18\n" +
|
|
"\aProfile\x18\f \x01(\tR\aProfile\x12\x10\n" +
|
|
"\x03Pem\x18\r \x01(\tR\x03Pem\x12\x1e\n" +
|
|
"\n" +
|
|
"IssuersPem\x18\x0e \x01(\tR\n" +
|
|
"IssuersPem\x12\x1c\n" +
|
|
"\tLocations\x18\x0f \x03(\tR\tLocations\x12\x14\n" +
|
|
"\x05Label\x18\x10 \x01(\tR\x05Label\x129\n" +
|
|
"\bMetadata\x18\x11 \x03(\v2\x1d.pb.Certificate.MetadataEntryR\bMetadata\x122\n" +
|
|
"\x06Status\x18\x12 \x01(\x0e2\x1a.pb.CertificateStatus.EnumR\x06Status\x12\x1c\n" +
|
|
"\tCreatedAt\x18\x13 \x01(\tR\tCreatedAt\x1a;\n" +
|
|
"\rMetadataEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xb2\x01\n" +
|
|
"\x12RevokedCertificate\x121\n" +
|
|
"\vCertificate\x18\x01 \x01(\v2\x0f.pb.CertificateR\vCertificate\x12\x1c\n" +
|
|
"\tRevokedAt\x18\x02 \x01(\tR\tRevokedAt\x12+\n" +
|
|
"\x06Reason\x18\x03 \x01(\x0e2\x13.pb.ReasonCode.EnumR\x06Reason\x12\x1e\n" +
|
|
"\n" +
|
|
"ReasonText\x18\x04 \x01(\tR\n" +
|
|
"ReasonText\"\xfb\x01\n" +
|
|
"\x03Crl\x12\x0e\n" +
|
|
"\x02ID\x18\x01 \x01(\tR\x02ID\x12\x14\n" +
|
|
"\x05OrgID\x18\x02 \x01(\tR\x05OrgID\x12\x1a\n" +
|
|
"\bIssuerID\x18\x03 \x01(\tR\bIssuerID\x12\x12\n" +
|
|
"\x04IKID\x18\x04 \x01(\tR\x04IKID\x12\x16\n" +
|
|
"\x06Number\x18\x05 \x01(\tR\x06Number\x12\x1e\n" +
|
|
"\n" +
|
|
"ThisUpdate\x18\x06 \x01(\tR\n" +
|
|
"ThisUpdate\x12\x1e\n" +
|
|
"\n" +
|
|
"NextUpdate\x18\a \x01(\tR\n" +
|
|
"NextUpdate\x12\x16\n" +
|
|
"\x06Issuer\x18\b \x01(\tR\x06Issuer\x12\x10\n" +
|
|
"\x03Pem\x18\t \x01(\tR\x03Pem\x12\x1c\n" +
|
|
"\tLocations\x18\n" +
|
|
" \x03(\tR\tLocations\"\xce\x01\n" +
|
|
"\bX509Name\x12\x18\n" +
|
|
"\aCountry\x18\x01 \x01(\tR\aCountry\x12\x14\n" +
|
|
"\x05State\x18\x02 \x01(\tR\x05State\x12\x1a\n" +
|
|
"\bLocality\x18\x03 \x01(\tR\bLocality\x12\"\n" +
|
|
"\fOrganisation\x18\x04 \x01(\tR\fOrganisation\x12.\n" +
|
|
"\x12OrganisationalUnit\x18\x05 \x01(\tR\x12OrganisationalUnit\x12\"\n" +
|
|
"\fSerialNumber\x18\x06 \x01(\tR\fSerialNumber\"u\n" +
|
|
"\vX509Subject\x12\x1e\n" +
|
|
"\n" +
|
|
"CommonName\x18\x01 \x01(\tR\n" +
|
|
"CommonName\x12\"\n" +
|
|
"\x05Names\x18\x02 \x03(\v2\f.pb.X509NameR\x05Names\x12\"\n" +
|
|
"\fSerialNumber\x18\x03 \x01(\tR\fSerialNumber\"B\n" +
|
|
"\fCAConstraint\x12\x12\n" +
|
|
"\x04IsCA\x18\x01 \x01(\bR\x04IsCA\x12\x1e\n" +
|
|
"\n" +
|
|
"MaxPathLen\x18\x02 \x01(\x05R\n" +
|
|
"MaxPathLen\"v\n" +
|
|
"\x10CSRAllowedFields\x12\x18\n" +
|
|
"\aSubject\x18\x01 \x01(\bR\aSubject\x12\x10\n" +
|
|
"\x03Dns\x18\x02 \x01(\bR\x03Dns\x12\x0e\n" +
|
|
"\x02Ip\x18\x03 \x01(\bR\x02Ip\x12\x14\n" +
|
|
"\x05Email\x18\x04 \x01(\bR\x05Email\x12\x10\n" +
|
|
"\x03Uri\x18\x05 \x01(\bR\x03Uri\"F\n" +
|
|
"\x1aCertificatePolicyQualifier\x12\x12\n" +
|
|
"\x04Type\x18\x01 \x01(\tR\x04Type\x12\x14\n" +
|
|
"\x05Value\x18\x02 \x01(\tR\x05Value\"c\n" +
|
|
"\x11CertificatePolicy\x12\x0e\n" +
|
|
"\x02ID\x18\x01 \x01(\tR\x02ID\x12>\n" +
|
|
"\n" +
|
|
"Qualifiers\x18\x02 \x03(\v2\x1e.pb.CertificatePolicyQualifierR\n" +
|
|
"Qualifiers\"Q\n" +
|
|
"\rX509Extension\x12\x0e\n" +
|
|
"\x02ID\x18\x01 \x01(\tR\x02ID\x12\x1a\n" +
|
|
"\bCritical\x18\x02 \x01(\bR\bCritical\x12\x14\n" +
|
|
"\x05Value\x18\x03 \x01(\tR\x05Value\"\x82\a\n" +
|
|
"\vCertProfile\x12\x0e\n" +
|
|
"\x02ID\x18\x01 \x01(\tR\x02ID\x12\x14\n" +
|
|
"\x05OrgID\x18\x02 \x01(\tR\x05OrgID\x12\x1c\n" +
|
|
"\tProjectID\x18\x03 \x01(\tR\tProjectID\x12\x14\n" +
|
|
"\x05Label\x18\x04 \x01(\tR\x05Label\x12 \n" +
|
|
"\vIssuerLabel\x18\x05 \x01(\tR\vIssuerLabel\x12 \n" +
|
|
"\vDescription\x18\x06 \x01(\tR\vDescription\x12\x16\n" +
|
|
"\x06Usages\x18\a \x03(\tR\x06Usages\x124\n" +
|
|
"\fCAConstraint\x18\b \x01(\v2\x10.pb.CAConstraintR\fCAConstraint\x12 \n" +
|
|
"\vOcspNoCheck\x18\t \x01(\bR\vOcspNoCheck\x12\x16\n" +
|
|
"\x06Expiry\x18\n" +
|
|
" \x01(\tR\x06Expiry\x12\x1a\n" +
|
|
"\bBackdate\x18\v \x01(\tR\bBackdate\x121\n" +
|
|
"\n" +
|
|
"Extensions\x18\f \x03(\v2\x11.pb.X509ExtensionR\n" +
|
|
"Extensions\x12,\n" +
|
|
"\x11AllowedExtensions\x18\r \x03(\tR\x11AllowedExtensions\x12\"\n" +
|
|
"\fAllowedNames\x18\x0e \x01(\tR\fAllowedNames\x12\x1e\n" +
|
|
"\n" +
|
|
"AllowedDns\x18\x0f \x01(\tR\n" +
|
|
"AllowedDns\x12\"\n" +
|
|
"\fAllowedEmail\x18\x10 \x01(\tR\fAllowedEmail\x12\x1e\n" +
|
|
"\n" +
|
|
"AllowedUri\x18\x11 \x01(\tR\n" +
|
|
"AllowedUri\x12:\n" +
|
|
"\rAllowedFields\x18\x12 \x01(\v2\x14.pb.CSRAllowedFieldsR\rAllowedFields\x121\n" +
|
|
"\bPolicies\x18\x13 \x03(\v2\x15.pb.CertificatePolicyR\bPolicies\x12*\n" +
|
|
"\x10PoliciesCritical\x18\x14 \x01(\bR\x10PoliciesCritical\x12\"\n" +
|
|
"\fAllowedRoles\x18\x15 \x03(\tR\fAllowedRoles\x12 \n" +
|
|
"\vDeniedRoles\x18\x16 \x03(\tR\vDeniedRoles\x12+\n" +
|
|
"\x06Status\x18\x17 \x01(\x0e2\x13.pb.ItemStatus.EnumR\x06Status\x12\x1c\n" +
|
|
"\tCreatedAt\x18\x18 \x01(\tR\tCreatedAt\x12\x1c\n" +
|
|
"\tUpdatedAt\x18\x19 \x01(\tR\tUpdatedAt\"F\n" +
|
|
"\fIssuerSerial\x12\x12\n" +
|
|
"\x04IKID\x18\x01 \x01(\tR\x04IKID\x12\"\n" +
|
|
"\fSerialNumber\x18\x02 \x01(\tR\fSerialNumber\"1\n" +
|
|
"\aKeySpec\x12\x12\n" +
|
|
"\x04Algo\x18\x01 \x01(\tR\x04Algo\x12\x12\n" +
|
|
"\x04Size\x18\x02 \x01(\x05R\x04Size\"\xcc\x02\n" +
|
|
"\fIssuerConfig\x12\x16\n" +
|
|
"\x06AiaURL\x18\x01 \x01(\tR\x06AiaURL\x12\x18\n" +
|
|
"\aOcspURL\x18\x02 \x01(\tR\aOcspURL\x12\x16\n" +
|
|
"\x06CrlURL\x18\x03 \x01(\tR\x06CrlURL\x12\x1c\n" +
|
|
"\tCrlExpiry\x18\x04 \x01(\tR\tCrlExpiry\x12\x1e\n" +
|
|
"\n" +
|
|
"CrlRenewal\x18\x05 \x01(\tR\n" +
|
|
"CrlRenewal\x12\x1e\n" +
|
|
"\n" +
|
|
"OcspExpiry\x18\x06 \x01(\tR\n" +
|
|
"OcspExpiry\x122\n" +
|
|
"\x14DelegatedOcspProfile\x18\a \x01(\tR\x14DelegatedOcspProfile\x12(\n" +
|
|
"\x0fAllowedProfiles\x18\b \x03(\tR\x0fAllowedProfiles\x126\n" +
|
|
"\x16OmitDisabledExtensions\x18\t \x01(\bR\x16OmitDisabledExtensions\"\xd9\x05\n" +
|
|
"\x06Issuer\x12\x0e\n" +
|
|
"\x02ID\x18\x01 \x01(\tR\x02ID\x12\x14\n" +
|
|
"\x05OrgID\x18\x02 \x01(\tR\x05OrgID\x12\x1c\n" +
|
|
"\tProjectID\x18\x03 \x01(\tR\tProjectID\x12\x14\n" +
|
|
"\x05Label\x18\x04 \x01(\tR\x05Label\x12*\n" +
|
|
"\x04Type\x18\x05 \x01(\x0e2\x16.pb.AuthorityType.EnumR\x04Type\x12-\n" +
|
|
"\x06Status\x18\x06 \x01(\x0e2\x15.pb.IssuerStatus.EnumR\x06Status\x12\x1a\n" +
|
|
"\bParentID\x18\a \x01(\tR\bParentID\x12\x12\n" +
|
|
"\x04SKID\x18\b \x01(\tR\x04SKID\x12\x12\n" +
|
|
"\x04IKID\x18\t \x01(\tR\x04IKID\x12\"\n" +
|
|
"\fSerialNumber\x18\n" +
|
|
" \x01(\tR\fSerialNumber\x12\x18\n" +
|
|
"\aSubject\x18\v \x01(\tR\aSubject\x12\x16\n" +
|
|
"\x06Issuer\x18\f \x01(\tR\x06Issuer\x12\x16\n" +
|
|
"\x06Sha256\x18\r \x01(\tR\x06Sha256\x12\x1c\n" +
|
|
"\tNotBefore\x18\x0e \x01(\tR\tNotBefore\x12\x1a\n" +
|
|
"\bNotAfter\x18\x0f \x01(\tR\bNotAfter\x12 \n" +
|
|
"\vCertificate\x18\x10 \x01(\tR\vCertificate\x12$\n" +
|
|
"\rIntermediates\x18\x11 \x01(\tR\rIntermediates\x12\x12\n" +
|
|
"\x04Root\x18\x12 \x01(\tR\x04Root\x12\x10\n" +
|
|
"\x03Csr\x18\x13 \x01(\tR\x03Csr\x12 \n" +
|
|
"\vKeyProvider\x18\x14 \x01(\tR\vKeyProvider\x12(\n" +
|
|
"\x06Config\x18\x15 \x01(\v2\x10.pb.IssuerConfigR\x06Config\x12\x1a\n" +
|
|
"\bProfiles\x18\x16 \x03(\tR\bProfiles\x12\x1c\n" +
|
|
"\tCrlNumber\x18\x17 \x01(\tR\tCrlNumber\x12\x1c\n" +
|
|
"\tCreatedAt\x18\x18 \x01(\tR\tCreatedAt\x12\x1c\n" +
|
|
"\tUpdatedAt\x18\x19 \x01(\tR\tUpdatedAtB/Z-github.com/effective-security/trustyca/api/pbb\x06proto3"
|
|
|
|
var (
|
|
file_pkix_proto_rawDescOnce sync.Once
|
|
file_pkix_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_pkix_proto_rawDescGZIP() []byte {
|
|
file_pkix_proto_rawDescOnce.Do(func() {
|
|
file_pkix_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkix_proto_rawDesc), len(file_pkix_proto_rawDesc)))
|
|
})
|
|
return file_pkix_proto_rawDescData
|
|
}
|
|
|
|
var file_pkix_proto_enumTypes = make([]protoimpl.EnumInfo, 6)
|
|
var file_pkix_proto_msgTypes = make([]protoimpl.MessageInfo, 23)
|
|
var file_pkix_proto_goTypes = []any{
|
|
(Trust_Enum)(0), // 0: pb.Trust.Enum
|
|
(EncodingFormat_Enum)(0), // 1: pb.EncodingFormat.Enum
|
|
(ReasonCode_Enum)(0), // 2: pb.ReasonCode.Enum
|
|
(CertificateStatus_Enum)(0), // 3: pb.CertificateStatus.Enum
|
|
(IssuerStatus_Enum)(0), // 4: pb.IssuerStatus.Enum
|
|
(AuthorityType_Enum)(0), // 5: pb.AuthorityType.Enum
|
|
(*Trust)(nil), // 6: pb.Trust
|
|
(*EncodingFormat)(nil), // 7: pb.EncodingFormat
|
|
(*ReasonCode)(nil), // 8: pb.ReasonCode
|
|
(*CertificateStatus)(nil), // 9: pb.CertificateStatus
|
|
(*IssuerStatus)(nil), // 10: pb.IssuerStatus
|
|
(*AuthorityType)(nil), // 11: pb.AuthorityType
|
|
(*RootCertificate)(nil), // 12: pb.RootCertificate
|
|
(*Certificate)(nil), // 13: pb.Certificate
|
|
(*RevokedCertificate)(nil), // 14: pb.RevokedCertificate
|
|
(*Crl)(nil), // 15: pb.Crl
|
|
(*X509Name)(nil), // 16: pb.X509Name
|
|
(*X509Subject)(nil), // 17: pb.X509Subject
|
|
(*CAConstraint)(nil), // 18: pb.CAConstraint
|
|
(*CSRAllowedFields)(nil), // 19: pb.CSRAllowedFields
|
|
(*CertificatePolicyQualifier)(nil), // 20: pb.CertificatePolicyQualifier
|
|
(*CertificatePolicy)(nil), // 21: pb.CertificatePolicy
|
|
(*X509Extension)(nil), // 22: pb.X509Extension
|
|
(*CertProfile)(nil), // 23: pb.CertProfile
|
|
(*IssuerSerial)(nil), // 24: pb.IssuerSerial
|
|
(*KeySpec)(nil), // 25: pb.KeySpec
|
|
(*IssuerConfig)(nil), // 26: pb.IssuerConfig
|
|
(*Issuer)(nil), // 27: pb.Issuer
|
|
nil, // 28: pb.Certificate.MetadataEntry
|
|
(ItemStatus_Enum)(0), // 29: pb.ItemStatus.Enum
|
|
}
|
|
var file_pkix_proto_depIdxs = []int32{
|
|
0, // 0: pb.RootCertificate.Trust:type_name -> pb.Trust.Enum
|
|
28, // 1: pb.Certificate.Metadata:type_name -> pb.Certificate.MetadataEntry
|
|
3, // 2: pb.Certificate.Status:type_name -> pb.CertificateStatus.Enum
|
|
13, // 3: pb.RevokedCertificate.Certificate:type_name -> pb.Certificate
|
|
2, // 4: pb.RevokedCertificate.Reason:type_name -> pb.ReasonCode.Enum
|
|
16, // 5: pb.X509Subject.Names:type_name -> pb.X509Name
|
|
20, // 6: pb.CertificatePolicy.Qualifiers:type_name -> pb.CertificatePolicyQualifier
|
|
18, // 7: pb.CertProfile.CAConstraint:type_name -> pb.CAConstraint
|
|
22, // 8: pb.CertProfile.Extensions:type_name -> pb.X509Extension
|
|
19, // 9: pb.CertProfile.AllowedFields:type_name -> pb.CSRAllowedFields
|
|
21, // 10: pb.CertProfile.Policies:type_name -> pb.CertificatePolicy
|
|
29, // 11: pb.CertProfile.Status:type_name -> pb.ItemStatus.Enum
|
|
5, // 12: pb.Issuer.Type:type_name -> pb.AuthorityType.Enum
|
|
4, // 13: pb.Issuer.Status:type_name -> pb.IssuerStatus.Enum
|
|
26, // 14: pb.Issuer.Config:type_name -> pb.IssuerConfig
|
|
15, // [15:15] is the sub-list for method output_type
|
|
15, // [15:15] is the sub-list for method input_type
|
|
15, // [15:15] is the sub-list for extension type_name
|
|
15, // [15:15] is the sub-list for extension extendee
|
|
0, // [0:15] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_pkix_proto_init() }
|
|
func file_pkix_proto_init() {
|
|
if File_pkix_proto != nil {
|
|
return
|
|
}
|
|
file_types_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkix_proto_rawDesc), len(file_pkix_proto_rawDesc)),
|
|
NumEnums: 6,
|
|
NumMessages: 23,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_pkix_proto_goTypes,
|
|
DependencyIndexes: file_pkix_proto_depIdxs,
|
|
EnumInfos: file_pkix_proto_enumTypes,
|
|
MessageInfos: file_pkix_proto_msgTypes,
|
|
}.Build()
|
|
File_pkix_proto = out.File
|
|
file_pkix_proto_goTypes = nil
|
|
file_pkix_proto_depIdxs = nil
|
|
}
|