tls

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager handles TLS certificate operations

func NewManager

func NewManager(cfg *config.TLSConfig, hostname string, logger *zap.Logger) (*Manager, error)

NewManager creates a new TLS manager

func (*Manager) GetCertificate

func (m *Manager) GetCertificate() *tls.Certificate

GetCertificate returns the loaded certificate

func (*Manager) GetTLSConfig

func (m *Manager) GetTLSConfig() *tls.Config

GetTLSConfig returns a TLS configuration

func (*Manager) Reload

func (m *Manager) Reload() error

Reload reloads the certificate from files

func (*Manager) SaveSelfSignedCert

func (m *Manager) SaveSelfSignedCert(certPath, keyPath string) error

SaveSelfSignedCert saves a self-signed certificate to files

func (*Manager) ValidateExpiry

func (m *Manager) ValidateExpiry(warningDays int) error

ValidateExpiry checks if the certificate is expiring soon

Jump to

Keyboard shortcuts

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