Documentation
¶
Index ¶
- func CheckCertKey(cert *x509.Certificate, privKey *rsa.PrivateKey) (bool, error)
- func CheckCertValidity(notBefore, notAfter time.Time, validity string) (bool, error)
- func ExtractCertData(secret corev1.Secret) (x509.Certificate, error)
- func ExtractKeyData(secret corev1.Secret) (rsa.PrivateKey, error)
- func GeneratePrivateKeyPEM() ([]byte, error)
- func GenerateTLSCertificate(dns string, validity string) ([]byte, []byte, error)
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 ExtractCertData ¶
func ExtractCertData(secret corev1.Secret) (x509.Certificate, error)
func ExtractKeyData ¶
func ExtractKeyData(secret corev1.Secret) (rsa.PrivateKey, error)
func GeneratePrivateKeyPEM ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.