Documentation
¶
Index ¶
- type DomainAcme
- type IssuerData
- type Manager
- func (m *Manager) AddCustomCert(domain, certFileData, keyfileData string)
- func (m *Manager) GetAcmeFileData(domain string) (*DomainAcme, error)
- func (m *Manager) GetCert(hello *tls.ClientHelloInfo) (*tls.Certificate, error)
- func (m *Manager) GetChallengeToken(domain string) string
- func (m *Manager) HTTPHandler(fallback http.Handler) http.Handler
- func (m *Manager) IssueCert(domain string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DomainAcme ¶
type DomainAcme struct { Sans []string `json:"sans"` IssuerData IssuerData `json:"issuer_data"` AccountKey *rsa.PrivateKey `json:"account_key"` CertFile string `json:"cert_file"` KeyFile string `json:"key_file"` ExpireDate time.Time `json:"expire_date"` IssueDate time.Time `json:"issue_date"` CustomCert bool `json:"custom_cert"` }
DomainAcme is a struct for domain acme data
func (*DomainAcme) Expired ¶ added in v0.0.9
func (d *DomainAcme) Expired() bool
Expired is a method for checking certificate is expired or not
func (*DomainAcme) IsNull ¶ added in v0.0.9
func (d *DomainAcme) IsNull() bool
func (*DomainAcme) RenewRequired ¶ added in v0.0.13
func (d *DomainAcme) RenewRequired() bool
Check is need renew certificate or not
type IssuerData ¶
type IssuerData struct { URL string `json:"url"` Ca string `json:"ca"` ChallengeToken string `json:"challenge_token"` }
IssuerData is a struct for issuer data
type Manager ¶
Manager is a struct for managing certificates
func NewManager ¶
NewManager is a constructor for Manager struct email: email for letsencrypt account location: location to store acme data and certificates
func (*Manager) AddCustomCert ¶ added in v0.0.16
func (*Manager) GetAcmeFileData ¶ added in v0.0.5
func (m *Manager) GetAcmeFileData(domain string) (*DomainAcme, error)
GetAcmeFileData is a method for getting acme file data
func (*Manager) GetCert ¶
func (m *Manager) GetCert(hello *tls.ClientHelloInfo) (*tls.Certificate, error)
GetCert is a method for getting tls certificate
func (*Manager) GetChallengeToken ¶
GetChallengeToken is a method for getting challenge token
func (*Manager) HTTPHandler ¶
HTTPHandler is a http handler for serving acme challenge
Click to show internal directories.
Click to hide internal directories.