providers

package
v4.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger log.ZapLogger
)

Functions

func LoadCertificates

func LoadCertificates(config *install.ProxyConfig, storageURL string) (certFile string, certKey string, err error)

func LoadTLSServerConfig

func LoadTLSServerConfig(config *install.ProxyConfig, storageURL string) (*tls.Config, error)

Types

type CertProvider

type CertProvider interface {
	LoadCertificates(config *install.ProxyConfig, storageURL string) (certFile string, certKey string, err error)
}

type MkCert

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

MkCert provides tooling for generating auto-certified certificate

func NewMkCert

func NewMkCert(storage certmagic.Storage) *MkCert

NewMkCert creates a new MkCert instance

func (*MkCert) GeneratedResources

func (m *MkCert) GeneratedResources() (certFile, keyFile, caFile, caKeyFile string)

GeneratedResources returns all files generated during certificate creation

func (*MkCert) MakeCert

func (m *MkCert) MakeCert(hosts []string, prefix string) error

MakeCert triggers the certificate generation process, using a list of known hosts

func (*MkCert) ReadCert added in v4.0.1

func (m *MkCert) ReadCert() (cert, key []byte, e error)

ReadCert returns all files generated during certificate creation

type MkCertCache

type MkCertCache struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func GetMkCertCache

func GetMkCertCache() *MkCertCache

func (*MkCertCache) LoadCertificates

func (m *MkCertCache) LoadCertificates(config *install.ProxyConfig, storageURL string) (certFile string, keyFile string, err error)

func (*MkCertCache) Uuid

func (m *MkCertCache) Uuid(hosts []string) string

Jump to

Keyboard shortcuts

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