# Functions
EncodeCertPEM returns PEM-encoded certificate data.
EncodePrivateKeyPEM returns PEM-encoded private key data.
NewPrivateKey creates an RSA private key.
NewSignedCert creates a signed certificate using the given CA certificate and key.
ServiceToCommonName generates the CommonName for the certificate when using a k8s service.
ValidCACert treats cert and key are valid if they meet the following requirements: - key and cert are valid pair - caCert is the root ca of cert - cert is for dnsName - cert won't expire before time.
# Structs
Artifacts hosts a private key, its corresponding serving certificate and the CA certificate that signs the serving certificate.
SelfSignedCertGenerator implements the certGenerator interface.
# Interfaces
CertGenerator is an interface to provision the serving certificate.