Documentation
¶
Index ¶
- func NeedsRenewal(notAfter time.Time) bool
- type CertificateData
- type Client
- func (c *Client) ObtainCertificate(ctx context.Context, domains []string) (*certificate.Resource, error)
- func (c *Client) RenewCertificate(ctx context.Context, cert *certificate.Resource) (*certificate.Resource, error)
- func (c *Client) RevokeCertificate(ctx context.Context, cert *certificate.Resource) error
- type Service
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NeedsRenewal ¶
NeedsRenewal checks if a certificate needs renewal (within 30 days of expiry)
Types ¶
type CertificateData ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client manages ACME certificate operations
func (*Client) ObtainCertificate ¶
func (c *Client) ObtainCertificate(ctx context.Context, domains []string) (*certificate.Resource, error)
ObtainCertificate requests a new certificate for the given domains
func (*Client) RenewCertificate ¶
func (c *Client) RenewCertificate(ctx context.Context, cert *certificate.Resource) (*certificate.Resource, error)
RenewCertificate renews an existing certificate
func (*Client) RevokeCertificate ¶
RevokeCertificate revokes a certificate
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service manages ACME certificate lifecycle
func NewService ¶
func NewService(email string, production bool, db *database.DB, logger *zap.Logger) (*Service, error)
NewService creates a new ACME service
func (*Service) CheckAndRenewExpiring ¶
CheckAndRenewExpiring checks all certificates and renews those expiring soon
type User ¶
type User struct {
Email string
Registration *registration.Resource
// contains filtered or unexported fields
}
User implements registration.User for ACME
func (*User) GetPrivateKey ¶
func (u *User) GetPrivateKey() crypto.PrivateKey
func (*User) GetRegistration ¶
func (u *User) GetRegistration() *registration.Resource
Click to show internal directories.
Click to hide internal directories.