tls

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateManager

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

CertificateManager manages TLS certificates for the proxy

func NewCertificateManager

func NewCertificateManager(config Config) (*CertificateManager, error)

NewCertificateManager creates a new certificate manager

func (*CertificateManager) SetupTLSAndWriteCACert

func (cm *CertificateManager) SetupTLSAndWriteCACert() (*tls.Config, error)

SetupTLSAndWriteCACert sets up TLS config and writes CA certificate to file Returns the TLS config, CA cert path, and config directory

type Config

type Config struct {
	Logger    *slog.Logger
	ConfigDir string
	Uid       int
	Gid       int
}

type Manager

type Manager interface {
	SetupTLSAndWriteCACert() (*tls.Config, string, string, error)
}

Jump to

Keyboard shortcuts

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