Versions in this module Expand all Collapse all v1 v1.1.8 May 22, 2023 Changes in this version + func EncodePrivate(privKey *ecdsa.PrivateKey) (string, error) + type Lego struct + func New(config *conf.CertConfig) (*Lego, error) + func (l *Lego) CheckCert(file []byte) (bool, error) + func (l *Lego) CreateCert() (err error) + func (l *Lego) RenewCert() error + func (l *Lego) SetProvider() error + type User struct + Email string + KeyEncoded string + Registration *registration.Resource + func NewUser(path string, email string) (*User, error) + func (u *User) DecodePrivate(pemEncodedPriv string) (*ecdsa.PrivateKey, error) + func (u *User) GetEmail() string + func (u *User) GetPrivateKey() crypto.PrivateKey + func (u *User) GetRegistration() *registration.Resource + func (u *User) Load(path string) error + func (u *User) Save(path string) error