Documentation
¶
Index ¶
- func CheckUserCertAvailable() (bool, bool)
- func GetACMEFileNames(domainName string, dirName string) (string, string, string, string)
- func PrepareCerts() (chan struct{}, chan struct{}, error)
- func SetDefaultDomain(https, wss bool) (bool, error)
- func VerifyCertificate(certPath, keyPath, domain string) (bool, error)
- func VerifyLocalCertificate(certPath string, keyPath string, domain string) (bool, error)
- func VerifyOCSP(bundle []byte) (bool, error)
- type CertManager
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUserCertAvailable ¶ added in v2.2.0
func GetACMEFileNames ¶
func PrepareCerts ¶
func PrepareCerts() (chan struct{}, chan struct{}, error)
func SetDefaultDomain ¶ added in v2.2.0
func VerifyCertificate ¶
func VerifyLocalCertificate ¶
func VerifyOCSP ¶
Types ¶
type CertManager ¶ added in v2.2.0
type CertManager struct { User *User LegoConfig *lego.Config LegoClient *lego.Client Resource *certificate.Resource }
func NewCertManager ¶
func NewCertManager() (*CertManager, error)
func (*CertManager) NeedObtain ¶ added in v2.2.0
func (cm *CertManager) NeedObtain() bool
func (*CertManager) NeedRenew ¶ added in v2.2.0
func (cm *CertManager) NeedRenew() bool
func (*CertManager) ObtainNewCert ¶ added in v2.2.0
func (cm *CertManager) ObtainNewCert() (*certificate.Resource, error)
func (*CertManager) RenewCert ¶ added in v2.2.0
func (cm *CertManager) RenewCert() (*certificate.Resource, error)
type User ¶
type User struct { Domain string Email string Registration *registration.Resource Key *rsa.PrivateKey }
You'll need a User or account type that implements acme.User
func (*User) GetPrivateKey ¶
func (u *User) GetPrivateKey() crypto.PrivateKey
func (User) GetRegistration ¶
func (u User) GetRegistration() *registration.Resource
func (*User) SaveToDisk ¶
Click to show internal directories.
Click to hide internal directories.