certmanager

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenCertPoolUseCA

func GenCertPoolUseCA(caFile string) (*x509.CertPool, error)

GenCertPoolUseCA generates a x509 CertPool based on the given CA file

func GenRootCertPool

func GenRootCertPool(kubeConfig, caFile string) (*x509.CertPool, error)

GenRootCertPool generates a x509 CertPool based on the given kubeconfig, if the kubeConfig is empty, it will creates the CertPool using the CA file

func GenTLSConfigUseCertMgrAndCA

func GenTLSConfigUseCertMgrAndCA(
	m certificate.Manager,
	serverAddr, caFile string) (*tls.Config, error)

GenTLSConfigUseCertMgrAndCA generates a TLS configuration based on the given certificate manager and the CA file

func GenTLSConfigUseCurrentCertAndCertPool added in v1.2.0

func GenTLSConfigUseCurrentCertAndCertPool(
	current func() *tls.Certificate,
	root *x509.CertPool,
	mode string) (*tls.Config, error)

GenTLSConfigUseCurrentCertAndCertPool generates a TLS configuration using the given current certificate and x509 CertPool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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