Versions in this module Expand all Collapse all v0 v0.1.0 May 11, 2023 Changes in this version + func CreateNonExistingFolder(path string) error + func GenerateCertificate(ctx *global.CertcliOptions, domain []string) (*certificate.Resource, error) + func GetKeyType(ctx *global.CertcliOptions) certcrypto.KeyType + func LaunchHook(hook string, meta map[string]string) error + func ReadCSRFile(filename string) (*x509.CertificateRequest, error) + func SetupChallenges(ctx *global.CertcliOptions, client *lego.Client) + type Account struct + Email string + Registration *registration.Resource + func Setup(ctx *global.CertcliOptions, accountsStorage *AccountsStorage) (*Account, *lego.Client) + func (a *Account) GetEmail() string + func (a *Account) GetPrivateKey() crypto.PrivateKey + func (a *Account) GetRegistration() *registration.Resource + type AccountsStorage struct + func NewAccountsStorage(ctx *global.CertcliOptions, domains []string) *AccountsStorage + func (s *AccountsStorage) ExistsAccountFilePath() bool + func (s *AccountsStorage) GetPrivateKey(keyType certcrypto.KeyType) crypto.PrivateKey + func (s *AccountsStorage) GetRootPath() string + func (s *AccountsStorage) GetRootUserPath() string + func (s *AccountsStorage) GetUserID() string + func (s *AccountsStorage) LoadAccount(privateKey crypto.PrivateKey) *Account + func (s *AccountsStorage) Save(account *Account) error + type CertificatesStorage struct + func NewCertificatesStorage(ctx *global.CertcliOptions, domains []string) *CertificatesStorage + func (s *CertificatesStorage) CreateArchiveFolder() + func (s *CertificatesStorage) CreateRootFolder() + func (s *CertificatesStorage) ExistsFile(domain, extension string) bool + func (s *CertificatesStorage) GetFileName(domain, extension string) string + func (s *CertificatesStorage) GetRootPath() string + func (s *CertificatesStorage) MoveToArchive(domain string) error + func (s *CertificatesStorage) ReadCertificate(domain, extension string) ([]*x509.Certificate, error) + func (s *CertificatesStorage) ReadFile(domain, extension string) ([]byte, error) + func (s *CertificatesStorage) ReadResource(domain string) certificate.Resource + func (s *CertificatesStorage) SaveResource(certRes *certificate.Resource) + func (s *CertificatesStorage) WriteCertificateFiles(domain string, certRes *certificate.Resource) error + func (s *CertificatesStorage) WriteFile(domain, extension string, data []byte) error + func (s *CertificatesStorage) WritePFXFile(domain string, certRes *certificate.Resource) error + type MyUser struct + Email string + Registration *registration.Resource + func (u *MyUser) GetEmail() string + func (u *MyUser) GetPrivateKey() crypto.PrivateKey + func (u MyUser) GetRegistration() *registration.Resource