- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 435 for cacert (0.16 sec)
-
cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go
kubeconfigtestutil.AssertKubeConfigCurrentCluster(t, config, "https://1.2.3.4:1234", caCert) kubeconfigtestutil.AssertKubeConfigCurrentAuthInfoWithClientCert(t, config, caCert, notAfter, "myClientName", "myOrg1", "myOrg2") } func TestBuildKubeConfigFromSpecWithTokenAuth(t *testing.T) { // Creates a CA caCert, _ := certstestutil.SetupCertificateAuthority(t)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 17:04:18 UTC 2024 - 39.5K bytes - Viewed (0) -
pilot/pkg/xds/sds_test.go
}) ) func readFile(name string) string { cacert, _ := os.ReadFile(name) return string(cacert) } func TestGenerateSDS(t *testing.T) { type Expected struct { Key string Cert string CaCert string CaCrl string } allResources := []string{ "kubernetes://generic", "kubernetes://generic-mtls", "kubernetes://generic-mtls-cacert",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 13 20:55:20 UTC 2024 - 17.7K bytes - Viewed (0) -
cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go
} // Validate period certsphase.CheckCertificatePeriodValidity(kubeadmconstants.CACertAndKeyBaseName, caCert) configs, err := getKubeConfigSpecsBase(cfg) if err != nil { return nil, err } for _, spec := range configs { spec.CACert = caCert spec.ClientCertAuth.CAKey = caKey } return configs, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 17:04:18 UTC 2024 - 27K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/certlist.go
caMap := make(CertificateTree) for _, cert := range m { if cert.CAName == "" { if _, ok := caMap[cert]; !ok { caMap[cert] = []*KubeadmCert{} } } else { ca, ok := m[cert.CAName] if !ok { return nil, errors.Errorf("certificate %q references unknown CA %q", cert.Name, cert.CAName) } caMap[ca] = append(caMap[ca], cert) } } return caMap, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 15.8K bytes - Viewed (0) -
cmd/kubeadm/app/util/certs/util.go
func GetSparseCertTestCases(t *testing.T) []CertTestCase { caCert, caKey := CreateCACert(t) fpCACert, fpCAKey := CreateCACert(t) etcdCACert, etcdCAKey := CreateCACert(t) fpCert, fpKey, _ := CreateTestCert(t, fpCACert, fpCAKey, certutil.AltNames{}) return []CertTestCase{ { Name: "nothing present", }, { Name: "CAs already exist", Files: PKIFiles{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 9.1K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/kubeconfig_test.go
defer os.RemoveAll(tmpdir) // Adds a pki folder with a ca cert to the temp folder pkidir := testutil.SetupPkiDirWithCertificateAuthority(t, tmpdir) // Retrieves ca cert for assertions caCert, _, err := pkiutil.TryLoadCertAndKeyFromDisk(pkidir, kubeadmconstants.CACertAndKeyBaseName) if err != nil { t.Fatalf("couldn't retrieve ca cert: %v", err) } var tests = []struct { name string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 5.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1_test.go
func NewV1TestServer(s V1Service, cert, key, caCert []byte) (*httptest.Server, error) { const webhookPath = "/testserver" var tlsConfig *tls.Config if cert != nil { cert, err := tls.X509KeyPair(cert, key) if err != nil { return nil, err } tlsConfig = &tls.Config{Certificates: []tls.Certificate{cert}} } if caCert != nil { rootCAs := x509.NewCertPool()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 43.2K bytes - Viewed (0) -
tests/integration/pilot/ingress_test.go
{ // Basic HTTPS call for foo. CaCert matches the secret name: "https-foo", call: echo.CallOptions{ Port: echo.Port{ Protocol: protocol.HTTPS, }, HTTP: echo.HTTP{ Path: "/test", Headers: headers.New().WithHost("foo.example.com").Build(), }, TLS: echo.TLS{ CaCert: ingressutil.IngressCredentialA.CaCert, }, Check: successChecker,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 19.5K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go
if !newCert.Equal(readCert) { t.Errorf("read cert does not match with expected new cert") } } // writeTestCertificate is a utility for creating a test certificate func writeTestCertificate(t *testing.T, dir, name string, caCert *x509.Certificate, caKey crypto.Signer, organization []string, notBefore, notAfter time.Time) *x509.Certificate {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 15:17:24 UTC 2024 - 9.5K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/phases/init/certs.go
} certsphase.CheckCertificatePeriodValidity(caCert.BaseName, caCertData) if err := pkiutil.VerifyCertChain(certData, intermediates, caCertData); err != nil { return errors.Wrapf(err, "[certs] certificate %s not signed by CA certificate %s", cert.BaseName, caCert.BaseName) } fmt.Printf("[certs] Using existing %s certificate and key on disk\n", cert.BaseName) return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 08 06:35:45 UTC 2024 - 9.8K bytes - Viewed (0)