Documentation ¶
Index ¶
- Variables
- type AccountFile
- type Bundle
- type CertManager
- func (c *CertManager) CreateAccount() error
- func (c *CertManager) ExportAccount() (*AccountFile, error)
- func (c *CertManager) ExportBundle() (*Bundle, error)
- func (c *CertManager) ExportPrivateKey() ([]byte, error)
- func (c *CertManager) GetCertificatesFunc(chi *tls.ClientHelloInfo) (*tls.Certificate, error)
- func (c *CertManager) ImportAccount(af AccountFile, persist bool) error
- func (c *CertManager) ImportBundle(bundle Bundle, persist bool) error
- func (c *CertManager) ImportPrivateKey(keyPem string) error
- func (c *CertManager) LoadAccountFromFile() error
- func (c *CertManager) LoadBundleFromFile() error
- func (c *CertManager) RequestCertificate() error
- type Config
- type Provider
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoAccount = fmt.Errorf("no account found associated with CertManager") ErrAccountExists = fmt.Errorf("already have account associated with CertManager") ErrNoPKey = fmt.Errorf("no private key associated with CertManager") ErrPKeyExists = fmt.Errorf("already have private key associated with CertManager") ErrNoCert = fmt.Errorf("no cert was generated") )
Functions ¶
This section is empty.
Types ¶
type AccountFile ¶
type CertManager ¶
type CertManager struct {
// contains filtered or unexported fields
}
func New ¶
func New(conf Config) (*CertManager, error)
func (*CertManager) CreateAccount ¶
func (c *CertManager) CreateAccount() error
func (*CertManager) ExportAccount ¶
func (c *CertManager) ExportAccount() (*AccountFile, error)
func (*CertManager) ExportBundle ¶
func (c *CertManager) ExportBundle() (*Bundle, error)
func (*CertManager) ExportPrivateKey ¶
func (c *CertManager) ExportPrivateKey() ([]byte, error)
func (*CertManager) GetCertificatesFunc ¶
func (c *CertManager) GetCertificatesFunc(chi *tls.ClientHelloInfo) (*tls.Certificate, error)
func (*CertManager) ImportAccount ¶
func (c *CertManager) ImportAccount(af AccountFile, persist bool) error
func (*CertManager) ImportBundle ¶
func (c *CertManager) ImportBundle(bundle Bundle, persist bool) error
func (*CertManager) ImportPrivateKey ¶
func (c *CertManager) ImportPrivateKey(keyPem string) error
func (*CertManager) LoadAccountFromFile ¶
func (c *CertManager) LoadAccountFromFile() error
func (*CertManager) LoadBundleFromFile ¶
func (c *CertManager) LoadBundleFromFile() error
func (*CertManager) RequestCertificate ¶
func (c *CertManager) RequestCertificate() error
Click to show internal directories.
Click to hide internal directories.