Versions in this module Expand all Collapse all v0 v0.13.3 Sep 30, 2019 Changes in this version + func GetConfigPath() string + func GetDBPath() string + func GetOTTKeyPath() string + func GetProvisionerKey(caURL, rootFile, kid string) (string, error) + func GetProvisioners(caURL, rootFile string) (provisioner.List, error) + func GetPublicPath() string + func GetRootCAPath() string + func GetSecretsPath() string + type Option func(c *authority.Config) error + func WithDefaultDB() Option + func WithoutDB() Option + type PKI struct + func New(public, private, config string) (*PKI, error) + func (p *PKI) GenerateConfig(opt ...Option) (*authority.Config, error) + func (p *PKI) GenerateIntermediateCertificate(name string, rootCrt *x509.Certificate, rootKey interface{}, pass []byte) error + func (p *PKI) GenerateKeyPairs(pass []byte) error + func (p *PKI) GenerateRootCertificate(name string, pass []byte) (*x509.Certificate, interface{}, error) + func (p *PKI) GenerateSSHSigningKeys(password []byte) error + func (p *PKI) GetCAConfigPath() string + func (p *PKI) GetRootFingerprint() string + func (p *PKI) Save(opt ...Option) error + func (p *PKI) SetAddress(s string) + func (p *PKI) SetCAURL(s string) + func (p *PKI) SetDNSNames(s []string) + func (p *PKI) SetProvisioner(s string) + func (p *PKI) TellPKI() + func (p *PKI) WriteRootCertificate(rootCrt *x509.Certificate, rootKey interface{}, pass []byte) error