Versions in this module Expand all Collapse all v1 v1.3.2 May 31, 2019 Changes in this version + var ErrCertificateUnavailable = errors.New("transport: certificate unavailable") + var ErrMissingCertPath = errors.New(...) + var ErrMissingKeyPath = errors.New(...) + type KeyProvider interface + Certificate func() *x509.Certificate + CertificateRequest func(*csr.CertificateRequest) ([]byte, error) + Check func() error + Generate func(algo string, size int) error + Load func() error + Persistent func() bool + Ready func() bool + SetCertificatePEM func([]byte) error + SignCSR func(csr *x509.CertificateRequest) ([]byte, error) + SignalFailure func(err error) bool + Store func() error + X509KeyPair func() (tls.Certificate, error) + type StandardPaths struct + CertFile string + KeyFile string + type StandardProvider struct + Paths StandardPaths + func NewStandardProvider(id *core.Identity) (*StandardProvider, error) + func (sp *StandardProvider) Certificate() *x509.Certificate + func (sp *StandardProvider) CertificateRequest(req *csr.CertificateRequest) ([]byte, error) + func (sp *StandardProvider) Check() error + func (sp *StandardProvider) Generate(algo string, size int) (err error) + func (sp *StandardProvider) Load() (err error) + func (sp *StandardProvider) Persistent() bool + func (sp *StandardProvider) Ready() bool + func (sp *StandardProvider) SetCertificatePEM(certPEM []byte) error + func (sp *StandardProvider) SignCSR(tpl *x509.CertificateRequest) ([]byte, error) + func (sp *StandardProvider) SignalFailure(err error) bool + func (sp *StandardProvider) Store() error + func (sp *StandardProvider) X509KeyPair() (tls.Certificate, error)