pki

package
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 9 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)

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

func GenTLSConfigUseCertMgrAndCertPool

func GenTLSConfigUseCertMgrAndCertPool(
	m certificate.Manager,
	root *x509.CertPool) (*tls.Config, error)

GenTGenTLSConfigUseCertMgrAndCertPool generates a TLS configuration using the given certificate manager 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