Documentation ¶
Index ¶
- Constants
- func DumpCASecret(c kubernetes.Interface, namespace, name string, caCertData, caKeyData []byte) (bool, error)
- func DumpSecret(c client.Client, namespace, name string, caData, certData, keyData []byte) error
- type CertPair
- type CertRotation
- type SelfSigner
- func NewGeneratedSelfSigner() (SelfSigner, error)
- func NewSelfSignerFromSecretOrGenerate(c kubernetes.Interface, secretNamespace, secretName string) (SelfSigner, error)
- func NewSelfSignerWithCA(caCert *x509.Certificate, caKey *rsa.PrivateKey, nextSerial *big.Int) (SelfSigner, error)
- func NewSelfSignerWithCAData(caCertData, caKeyData []byte) (SelfSigner, error)
Constants ¶
View Source
const ( TLSCACert = "ca.crt" TLSCAKey = "ca.key" )
Variables ¶
This section is empty.
Functions ¶
func DumpCASecret ¶
Types ¶
type CertRotation ¶
type CertRotation interface {
EnsureTargetCertKeyPair(signingCertKeyPair *openshiftcrypto.CA, caBundleCerts []*x509.Certificate, fns ...openshiftcrypto.CertificateExtensionFunc) error
}
type SelfSigner ¶
type SelfSigner interface { Sign(cfg cert.Config, expiry time.Duration) (CertPair, error) CAData() []byte GetSigner() crypto.Signer CA() *openshiftcrypto.CA }
func NewGeneratedSelfSigner ¶
func NewGeneratedSelfSigner() (SelfSigner, error)
func NewSelfSignerFromSecretOrGenerate ¶
func NewSelfSignerFromSecretOrGenerate(c kubernetes.Interface, secretNamespace, secretName string) (SelfSigner, error)
func NewSelfSignerWithCA ¶
func NewSelfSignerWithCA(caCert *x509.Certificate, caKey *rsa.PrivateKey, nextSerial *big.Int) (SelfSigner, error)
func NewSelfSignerWithCAData ¶
func NewSelfSignerWithCAData(caCertData, caKeyData []byte) (SelfSigner, error)
Click to show internal directories.
Click to hide internal directories.