certificate

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCertKey

func CheckCertKey(cert *x509.Certificate, privKey *rsa.PrivateKey) (bool, error)

func CheckCertValidity

func CheckCertValidity(notBefore, notAfter time.Time, validity string) (bool, error)

func ExtractCertData

func ExtractCertData(secret corev1.Secret) (x509.Certificate, error)

func ExtractKeyData

func ExtractKeyData(secret corev1.Secret) (rsa.PrivateKey, error)

func GeneratePrivateKeyPEM

func GeneratePrivateKeyPEM() ([]byte, error)

func GenerateTLSCertificate

func GenerateTLSCertificate(dns string, validity string) ([]byte, []byte, error)

generate a TLS certificate and key based on the provided DNS and validity

Types

This section is empty.

Jump to

Keyboard shortcuts

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