cdstls

package
v0.0.0-...-ff9a18c Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CAFilePath              = filepath.Join(cenv.ConfigDir(kcertsDir), "ca.pem")
	AgentServerCertFilePath = filepath.Join(cenv.ConfigDir(kcertsDir), "agent-srv.pem")
	AgentServerKeyFilePath  = filepath.Join(cenv.ConfigDir(kcertsDir), "agent-srv-key.pem")
	ClientCertFilePath      = filepath.Join(cenv.ConfigDir(kcertsDir), "client.pem")
	ClientKeyFilePath       = filepath.Join(cenv.ConfigDir(kcertsDir), "client-key.pem")
)

Functions

func BuildAgentServerCerts

func BuildAgentServerCerts() error

func BuildCerts

func BuildCerts() error

func SetupTLSConfig

func SetupTLSConfig(tcfg TLSConfig) (*tls.Config, error)

Build appropriate *tls.Config based on tcfg content

Types

type TLSConfig

type TLSConfig struct {
	CertFile      string
	KeyFile       string
	CAFile        string
	ServerAddress string
	Server        bool
}

Define the parameters that SetupTLSConfig uses to determine what type of *tls.Config to return.

Jump to

Keyboard shortcuts

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