certs

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertDataToSecret

func CertDataToSecret(name string, certData CertificateData, annotations map[string]string) corev1.Secret

func GenerateCASecret

func GenerateCASecret(name string, subject string) corev1.Secret

func GenerateSecret

func GenerateSecret(name string, subject string, hosts string, ca *corev1.Secret) corev1.Secret

func GenerateSimpleSecret

func GenerateSimpleSecret(name string, ca *corev1.Secret) corev1.Secret

func GetSecretContent

func GetSecretContent(secretFile string) (map[string][]byte, error)

func GetTlsConfig

func GetTlsConfig(verify bool, cert, key, ca string) (*tls.Config, error)

func PutCertificateData

func PutCertificateData(name string, secretFile string, certData CertificateData, annotations map[string]string)

Types

type CertificateAuthority

type CertificateAuthority struct {
	Certificate *x509.Certificate
	Key         interface{}
	CrtData     []byte
}

type CertificateData

type CertificateData map[string][]byte

func GenerateCACertificateData

func GenerateCACertificateData(name string, subject string) CertificateData

func GenerateCertificateData

func GenerateCertificateData(name string, subject string, hosts string, caData CertificateData) CertificateData

func SecretToCertData

func SecretToCertData(secret corev1.Secret) CertificateData

Jump to

Keyboard shortcuts

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