Documentation ¶
Index ¶
- func Init(ctx context.Context) error
- type Certificate
- func (c *Certificate) GetCertificateContent() []byte
- func (c *Certificate) GetCertificateFilePath() string
- func (c *Certificate) GetCsrContent() []byte
- func (c *Certificate) GetCsrFilePath() string
- func (c *Certificate) GetExpireTime() time.Time
- func (c *Certificate) GetIssueCertificate() []byte
- func (c *Certificate) GetIssueCertificateFilePath() string
- func (c *Certificate) GetPrivateKeyContent() []byte
- func (c *Certificate) GetPrivateKeyFilePath() string
- type Manager
- func (m *Manager) CheckExists(host string) bool
- func (m *Manager) GetCertificate(host string) (*Certificate, error)
- func (m *Manager) GetMustCertificate(host string) *Certificate
- func (m *Manager) IssueNew(host, email string) (*Certificate, error)
- func (m *Manager) Renew(host, email string) error
- func (m *Manager) RenewLoop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Certificate ¶ added in v1.0.1
type Certificate struct {
// contains filtered or unexported fields
}
func (*Certificate) GetCertificateContent ¶ added in v1.0.1
func (c *Certificate) GetCertificateContent() []byte
func (*Certificate) GetCertificateFilePath ¶ added in v1.0.1
func (c *Certificate) GetCertificateFilePath() string
func (*Certificate) GetCsrContent ¶ added in v1.0.1
func (c *Certificate) GetCsrContent() []byte
func (*Certificate) GetCsrFilePath ¶ added in v1.0.1
func (c *Certificate) GetCsrFilePath() string
func (*Certificate) GetExpireTime ¶ added in v1.0.1
func (c *Certificate) GetExpireTime() time.Time
func (*Certificate) GetIssueCertificate ¶ added in v1.0.1
func (c *Certificate) GetIssueCertificate() []byte
func (*Certificate) GetIssueCertificateFilePath ¶ added in v1.0.1
func (c *Certificate) GetIssueCertificateFilePath() string
func (*Certificate) GetPrivateKeyContent ¶ added in v1.0.1
func (c *Certificate) GetPrivateKeyContent() []byte
func (*Certificate) GetPrivateKeyFilePath ¶ added in v1.0.1
func (c *Certificate) GetPrivateKeyFilePath() string
type Manager ¶ added in v1.0.1
func (*Manager) CheckExists ¶ added in v1.0.1
CheckExists 检查域名证书是否存在
func (*Manager) GetCertificate ¶ added in v1.0.1
func (m *Manager) GetCertificate(host string) (*Certificate, error)
GetCertificate 获取域名的证书
func (*Manager) GetMustCertificate ¶ added in v1.0.1
func (m *Manager) GetMustCertificate(host string) *Certificate
GetMustCertificate 获取域名的证书,该方法假定一定成功
func (*Manager) IssueNew ¶ added in v1.0.1
func (m *Manager) IssueNew(host, email string) (*Certificate, error)
IssueNew 申请新的证书 申请证书需要监听80与443端口,申请证书前需要关闭所有web服务,以免续期失败
Click to show internal directories.
Click to hide internal directories.