certhandler

package
v0.0.0-...-4f9db50 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateTLSSecret

func CreateOrUpdateTLSSecret(ctx context.Context, kubeClient client.Client, secret *corev1.Secret) error

CreateOrUpdateTLSSecret creates or updates a TLS secret in the Kubernetes cluster.

func TlsSecret

func TlsSecret(tlsData TLSData, certificate *v1alpha1.Certificate, namespace string) *corev1.Secret

TlsSecret creates a TLS secret from the provided TLS data and Certificate object.

Types

type TLSData

type TLSData struct {
	PrivateKeyBytes  []byte
	CertificateBytes []byte
}

TLSData represents TLS data containing a private key and certificate bytes.

func Decoder

func Decoder(data, password string) (TLSData, error)

Decoder decodes the PKCS#12 formatted TLS data.

Jump to

Keyboard shortcuts

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