cert

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSelfSignedCertKey

func GenerateSelfSignedCertKey(ctx context.Context, certPath, keyPath string) error

Types

type Config

type Config struct {
	TLSCert string
	TLSKey  string
	TLSCA   string
	// contains filtered or unexported fields
}

func NewCertConfig

func NewCertConfig(ctx context.Context, doneChan chan struct{}, certPath, keyPath, caPath string) (*Config, error)

func (*Config) GetConfigForClient

func (cc *Config) GetConfigForClient(hello *tls.ClientHelloInfo) (*tls.Config, error)

GetConfigForClient gets the tlsConfig for the streaming server. This allows the certs to be swapped, without shutting down crio.

Jump to

Keyboard shortcuts

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