certman

package
v0.0.0-...-9c062b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaddyCertMan

type CaddyCertMan struct {
	// contains filtered or unexported fields
}

func NewCaddyCertMan

func NewCaddyCertMan(storage certmagic.Storage, tlsApp *caddytls.TLS) *CaddyCertMan

func (*CaddyCertMan) DeleteCert

func (c *CaddyCertMan) DeleteCert(ctx context.Context, hostname string) error

func (*CaddyCertMan) GetCertInfo

func (c *CaddyCertMan) GetCertInfo(ctx context.Context, hostname string) (*CertInfo, error)

func (*CaddyCertMan) HasCert

func (c *CaddyCertMan) HasCert(ctx context.Context, hostname string) (bool, error)

func (*CaddyCertMan) PokeCert

func (c *CaddyCertMan) PokeCert(ctx context.Context, hostname string) error

type CertInfo

type CertInfo struct {
	Hostname  string
	NotBefore time.Time
	NotAfter  time.Time
	Issuer    string
}

type CertMan

type CertMan interface {
	// HasCert checks if a certificate for the given hostname exists in the certificate storage.
	HasCert(ctx context.Context, hostname string) (bool, error)

	// GetCertInfo retrieves information about the certificate for the given hostname, if it exists.
	GetCertInfo(ctx context.Context, hostname string) (*CertInfo, error)

	// PokeCert triggers the certificate issuance process for the given hostname.
	PokeCert(ctx context.Context, hostname string) error

	// DeleteCert removes a matching certificate from storage, if it exists. This is useful for testing and cleanup.
	DeleteCert(ctx context.Context, hostname string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL