pki

package
v2.0.1-rc49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TypeIssuingCA is a root certificate that can be used to issue sub-certificates
	TypeIssuingCA = "IssuingCA"
	// TypeIssuingSubCert is an issuing sub cert which is signed by issuing ca
	TypeIssuingSubCert = "IssuingSubCertificate"
	// Root cert ID
	RootCertId = "baetyl-cloud-system-cert-root"
)

Variables

View Source
var (
	ErrParseCert  = errors.New("failed to parse certificate")
	ErrCertInUsed = errors.New("there are also sub-certificates issued according to this certificate in use and cannot be deleted")
	ErrPlugin     = errors.New("plugin type conversion error")
)

Functions

func NewPKI

func NewPKI() (plugin.Plugin, error)

NewPKI new

Types

type CloudConfig

type CloudConfig struct {
	PKI struct {
		RootCAFile    string        `yaml:"rootCAFile" json:"rootCAFile" validate:"nonzero"`
		RootCAKeyFile string        `yaml:"rootCAKeyFile" json:"rootCAKeyFile" validate:"nonzero"`
		SubDuration   time.Duration `yaml:"subDuration" json:"subDuration" default:"175200h"`   // 20*365*24
		RootDuration  time.Duration `yaml:"rootDuration" json:"rootDuration" default:"438000h"` // 50*365*24
		Persistent    string        `yaml:"persistent" json:"persistent" default:"database"`
	} `yaml:"defaultpki" json:"defaultpki"`
}

CloudConfig baetyl-cloud config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL