Versions in this module Expand all Collapse all v1 v1.1.13 Mar 5, 2024 v1.1.12 Mar 29, 2023 Changes in this version + const CA + const CSR + const CertPath + const Certificate + const EC256 + const EC384 + const PrivateKey + const RSA2048 + const RSA4096 + const RSA8192 + const Renew + func AutoCert(c *Cert, err error) + func CleanCertCache() error + func CreateCertDir() error + func GeneratePrivateKey() (crypto.PrivateKey, error) + func GeneratePrivateKeyCustom(curve elliptic.Curve) (crypto.PrivateKey, error) + func HasCertCache() bool + func HttpRun() error + func HttpRunForOnce() error + func HttpRunWithCtx(ctx context.Context) + func NewClient(account *Cert) (*lego.Client, error) + func ObtainDomains(c *lego.Client, domains []string) (*certificate.Resource, error) + func RegAccount(c *lego.Client) (*registration.Resource, error) + func RegProvider(c *lego.Client, challenge string) error + func SaveCert(p string, cert *certificate.Resource) error + func SetCertCacheDir(p string) + type Cert struct + Challenge string + Email string + KeyType string + Registration *registration.Resource + func NewCert(certPath, email string, domains []string) Cert + func NewDefault(email string, domains []string) Cert + func (c *Cert) AddDomains(ds []string) + func (c *Cert) AddRegistration(reg *registration.Resource) + func (c *Cert) Create() (*certificate.Resource, error) + func (c *Cert) GetCertPath() string + func (c *Cert) GetDomains() []string + func (c *Cert) GetEmail() string + func (c *Cert) GetPrivateKey() crypto.PrivateKey + func (c *Cert) GetRegistration() *registration.Resource + func (c *Cert) Ready() error + func (c *Cert) Run() (err error) + func (c *Cert) RunAndStop() error + func (c *Cert) SetCertPath(p string) + func (c *Cert) SetChallengePath(p string) + func (c *Cert) SetKeyType(t string) + func (c *Cert) SetRenew(t int)