Versions in this module Expand all Collapse all v2 v2.5.2 Jun 8, 2022 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 + Name string + Root *KeyPair + RootCommonName string + StorageRaw json.RawMessage + func (ca *CA) NewAuthority(authorityConfig AuthorityConfig) (*authority.Authority, error) + func (ca *CA) Provision(ctx caddy.Context, id string, log *zap.Logger) error + func (ca CA) IntermediateCertificate() *x509.Certificate + func (ca CA) IntermediateKey() interface{} + func (ca CA) RootCertificate() *x509.Certificate + func (ca CA) RootKey() (interface{}, 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) CaddyModule() caddy.ModuleInfo + func (p *PKI) GetCA(ctx caddy.Context, id string) (*CA, error) + func (p *PKI) Provision(ctx caddy.Context) error + func (p *PKI) ProvisionDefaultCA(ctx caddy.Context) error + func (p *PKI) Start() error + func (p *PKI) Stop() error