Versions in this module Expand all Collapse all v1 v1.0.4 Sep 29, 2024 Changes in this version + const DefaultCAID + type AuthorityConfig struct + AuthConfig *authority.AuthConfig + DB *db.AuthDB + SignWithRoot bool + type CA struct + ID string + InstallTrust *bool + Intermediate *KeyPair + IntermediateCommonName string + IntermediateLifetime kengine.Duration + Name string + Root *KeyPair + RootCommonName string + StorageRaw json.RawMessage + func (ca *CA) NewAuthority(authorityConfig AuthorityConfig) (*authority.Authority, error) + func (ca *CA) Provision(ctx kengine.Context, id string, log *zap.Logger) error + func (ca CA) IntermediateCertificate() *x509.Certificate + func (ca CA) IntermediateKey() any + func (ca CA) RootCertificate() *x509.Certificate + func (ca CA) RootKey() (any, error) + type KeyPair struct + Certificate string + Format string + PrivateKey string + func (kp KeyPair) Load() (*x509.Certificate, crypto.Signer, error) + type PKI struct + CAs map[string]*CA + func (PKI) KengineModule() kengine.ModuleInfo + func (p *PKI) GetCA(ctx kengine.Context, id string) (*CA, error) + func (p *PKI) Provision(ctx kengine.Context) error + func (p *PKI) ProvisionDefaultCA(ctx kengine.Context) error + func (p *PKI) Start() error + func (p *PKI) Stop() error Other modules containing this package github.com/khulnasoft/kengine/v2