Versions in this module Expand all Collapse all v0 v0.0.1 Nov 28, 2021 Changes in this version + const CertificateBlockType + var NewPrivateKey = GeneratePrivateKey + func EncodeCertPEM(cert *x509.Certificate) []byte + func GeneratePrivateKey(keyType x509.PublicKeyAlgorithm) (crypto.Signer, error) + func NewCACertAndKey() (*x509.Certificate, *crypto.Signer, error) + func NewCertAndKey(caCert *x509.Certificate, caKey crypto.Signer, config *CertConfig) (*x509.Certificate, crypto.Signer, error) + func NewCertificateAuthority(config *CertConfig) (*x509.Certificate, crypto.Signer, error) + func NewSignedCert(cfg *CertConfig, key crypto.Signer, caCert *x509.Certificate, ...) (*x509.Certificate, error) + func RemoveDuplicateAltNames(altNames *certutil.AltNames) + func WriteCert(pkiPath, name string, cert *x509.Certificate) error + func WriteCertAndKey(pkiPath, pkiName string, ca *x509.Certificate, key *crypto.Signer) error + func WriteKey(pkiPath, name string, key crypto.Signer) error + type CertAndKeyFileName struct + ALLCertFileName []string + ALLKeyFileName []string + CACertFileName string + CAKeyFileName string + EtcdClientCertFileName string + EtcdClientKeFileName string + EtcdServerCertFileName string + EtcdServerKeyFileName string + KArmadaCertFileName string + KArmadaKeyFileName string + type CertConfig struct + NotAfter *time.Time + PublicKeyAlgorithm x509.PublicKeyAlgorithm + type Config struct + EtcdReplicas int32 + EtcdServiceName string + EtcdStatefulSetName string + FlagsExternalIP string + KArmadaApiServerServiceName string + KArmadaMasterIP []net.IP + KArmadaWebhookServiceName string + Namespace string + PkiPath string + func (c *Config) CertificateGeneration() (*CertAndKeyFileName, error) v0.0.1-alpha Nov 21, 2021