Documentation ¶
Index ¶
- func DecodeCertificate(raw []byte) (cert *x509.Certificate, err error)
- func DecodeKey(raw []byte) (parsedKey []byte, err error)
- func EnsureSecretPassJKS(secret *corev1.Secret) (injected *corev1.Secret, err error)
- func GenerateJKS(clientCert, clientKey, clientCA []byte) (out, passw []byte, err error)
- func GeneratePass(length int) (passw []byte)
- func GenerateTestCert() (cert, key []byte, expectedDn string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeCertificate ¶
func DecodeCertificate(raw []byte) (cert *x509.Certificate, err error)
DecodeCertificate returns an x509.Certificate for a PEM encoded certificate
func EnsureSecretPassJKS ¶
EnsureSecretPassJKS ensures a JKS password is present in a certificate secret
func GenerateJKS ¶
GenerateJKS creates a JKS with a random password from a client cert/key combination
func GeneratePass ¶
GeneratePass generates a random password
func GenerateTestCert ¶
GenerateTestCert is used from unit tests for generating certificates
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.