# Packages
No description provided by the author
# Functions
GenerateSelfSignedCert generates a self signed certificate keyFile, certFile pair to be passed to http.ListenAndServeTLS The first return value is the keyFile name, the second the certFile name The caller is responsible for creating a writeable directory and cleaning up the generated files afterwards.
GetKeyPairAndCert will return the secret data if it exists.
GetKeyPairAndCertBytes returns the raw bytes stored in the secret.
GetOrCreateCA will get the CA KeyPair, creating it if necessary.
GetOrCreateClientKeyPairAndCert creates a secret for upload proxy.
GetOrCreatePrivateKey gets or creates a private key secret.
GetOrCreateServerKeyPairAndCert creates secret for an upload server.
SaveKeyPairAndCert saves a private key, cert, and maybe a ca cert to kubernetes.
# Constants
KeyStorePrivateKeyFile is the key in a secret containing an RSA private key.
KeyStorePublicKeyFile is the key in a secret containing an RSA publis key.
KeyStoreTLSCAFile is the key in a secret containing a CA cert.
KeyStoreTLSCertFile is the key in a secret containing the TLS cert.
KeyStoreTLSKeyFile is the key in a secret containing the TLS key.
# Structs
KeyPairAndCert holds a KeyPair and optional CA In the case of a server key pair, the CA is the CA that signed client certs In the case of a client key pair, the CA is the CA that signed the server cert.
KeyPairAndCertBytes contains the PEM encoded key data.