- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,706 for cacert (0.16 sec)
-
staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1beta1_test.go
func NewV1beta1TestServer(s V1beta1Service, 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: Fri Mar 01 22:41:27 UTC 2024 - 19.9K bytes - Viewed (0) -
pkg/test/echo/server/forwarder/config.go
return nil, fmt.Errorf("failed to load client certificate: %v", err) } r.CaCert = string(certData) } if r.InsecureSkipVerify || r.CaCert == "" { tlsConfig.InsecureSkipVerify = true } else if r.CaCert != "" { certPool := x509.NewCertPool() if !certPool.AppendCertsFromPEM([]byte(r.CaCert)) { return nil, fmt.Errorf("failed to create cert pool") } tlsConfig.RootCAs = certPool }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Oct 08 09:39:20 UTC 2023 - 9.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testcerts/gencerts.sh
openssl x509 -req -in server.csr -CA CACert.pem -CAkey CAKey.pem -CAcreateserial -out ServerCert.pem -days 100000 -extensions v3_req -extfile server.conf # Create a client certiticate openssl genrsa -out ClientKey.pem 2048 openssl req -new -key ClientKey.pem -out client.csr -subj "/CN=${CN_BASE}_client" -config client.conf
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 24 05:55:09 UTC 2019 - 3.5K 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) -
plugin/pkg/admission/imagepolicy/admission_test.go
func NewTestServer(s Service, cert, key, caCert []byte) (*httptest.Server, error) { 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() rootCAs.AppendCertsFromPEM(caCert) if tlsConfig == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 02 06:05:06 UTC 2023 - 32.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook_v1beta1_test.go
func NewV1beta1TestServer(s V1beta1Service, 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: Fri Mar 18 00:47:42 UTC 2022 - 19.2K bytes - Viewed (0) -
plugin/pkg/admission/imagepolicy/gencerts.sh
openssl x509 -req -in server.csr -CA caCert.pem -CAkey caKey.pem -CAcreateserial -out serverCert.pem -days 100000 -extensions v3_req -extfile server.conf # Create a client certiticate openssl genrsa -out clientKey.pem 2048 openssl req -new -key clientKey.pem -out client.csr -subj "/CN=webhook_imagepolicy_client" -config client.conf
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 10 14:59:09 UTC 2019 - 3.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/gencerts.sh
openssl x509 -req -in server.csr -CA caCert.pem -CAkey caKey.pem -CAcreateserial -out serverCert.pem -days 100000 -extensions v3_req -extfile server.conf # Create a client certiticate openssl genrsa -out clientKey.pem 2048 openssl req -new -key clientKey.pem -out client.csr -subj "/CN=webhook_authz_client" -config client.conf
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Feb 23 02:28:04 UTC 2019 - 3.4K bytes - Viewed (0) -
cluster/gce/gci/apiserver_etcd_test.go
testCases := []struct { desc string env kubeAPIServeETCDEnv want []string }{ { desc: "mTLS enabled", env: kubeAPIServeETCDEnv{ CAKey: "CAKey", CACert: "CACert", CACertPath: "CACertPath", APIServerKey: "APIServerKey", APIServerCert: "APIServerCert", ETCDKey: "ETCDKey", ETCDCert: "ETCDCert",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 18 11:14:24 UTC 2021 - 5.6K 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)