providers

package
v2.2.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCertificates

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

func LoadTLSServerConfig

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

Types

type CertProvider

type CertProvider interface {
	LoadCertificates(config *install.ProxyConfig) (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(storageLocation string) *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

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

type MkCertCache

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

func GetMkCertCache

func GetMkCertCache() *MkCertCache

func (*MkCertCache) LoadCertificates

func (m *MkCertCache) LoadCertificates(config *install.ProxyConfig) (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