cert

package
v0.0.0-...-f509192 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PathKey   string
	PathCert  string
	IPAddress string
	ValidFor  time.Duration
	Logger    *zerolog.Logger
}

type ExpiredError

type ExpiredError struct {
	Now       time.Time
	NotBefore time.Time
	NotAfter  time.Time
}

func (*ExpiredError) Error

func (e *ExpiredError) Error() string

type Provider

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

func NewProvider

func NewProvider(cfg Config) (*Provider, error)

func (*Provider) Ensure

func (p *Provider) Ensure() error

func (*Provider) GetCert

func (p *Provider) GetCert(*tls.ClientHelloInfo) (*tls.Certificate, error)

func (*Provider) GetPublicKey

func (p *Provider) GetPublicKey() ed25519.PublicKey

func (*Provider) Watch

func (p *Provider) Watch(ctx context.Context) error

Jump to

Keyboard shortcuts

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