- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 1,706 for cacert (0.1 sec)
-
tests/integration/security/file_mounted_certs/main_test.go
var privateKey, clientCert, caCert []byte var err error if privateKey, err = ReadCustomCertFromFile(certsPath, "key.pem"); err != nil { return err } if clientCert, err = ReadCustomCertFromFile(certsPath, "cert-chain.pem"); err != nil { return err } if caCert, err = ReadCustomCertFromFile(certsPath, "root-cert.pem"); err != nil { return err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 13.4K bytes - Viewed (0) -
cmd/kubeadm/app/util/pkiutil/pki_helpers_test.go
}, } for _, rt := range tests { t.Run(rt.name, func(t *testing.T) { caCert := &x509.Certificate{} config := &CertConfig{ Config: certutil.Config{ CommonName: "test", Organization: []string{"test"}, Usages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth}, }, } _, _, err := NewCertAndKey(caCert, rt.key, config) if err != nil { t.Errorf("failed NewCertAndKey: %v", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 31 21:49:21 UTC 2024 - 22.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/authentication_info_resolver.go
func NewAuthenticationInfoResolver(cacheMisses *int32) webhook.AuthenticationInfoResolver { return &authenticationInfoResolver{ restConfig: &rest.Config{ TLSClientConfig: rest.TLSClientConfig{ CAData: testcerts.CACert, CertData: testcerts.ClientCert, KeyData: testcerts.ClientKey, }, }, cacheMisses: cacheMisses, } } type authenticationInfoResolver struct { restConfig *rest.Config
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 18 18:49:55 UTC 2022 - 2.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/egressselector/egress_selector.go
clientCert := t.ClientCert clientKey := t.ClientKey caCert := t.CABundle clientCerts, err := tls.LoadX509KeyPair(clientCert, clientKey) if err != nil { return nil, fmt.Errorf("failed to read key pair %s & %s, got %v", clientCert, clientKey, err) } certPool := x509.NewCertPool() if caCert != "" { certBytes, err := os.ReadFile(caCert) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 15:48:39 UTC 2023 - 12.5K bytes - Viewed (0) -
pkg/webhooks/validation/controller/controller_test.go
func TestLoadCaCertPem(t *testing.T) { cases := []struct { name string cert []byte wantError bool }{ { name: "valid pem", cert: testcerts.CACert, wantError: false, }, { name: "pem decode error", cert: append([]byte("-----codec"), testcerts.CACert...), wantError: true, }, { name: "pem wrong type", wantError: true,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 05 03:21:04 UTC 2024 - 11.8K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/certlist_test.go
} for _, test := range tests { t.Run(test.name, func(t *testing.T) { certMap := test.certs.AsMap() for _, cert := range test.certs { if cert.CAName != "" && certMap[cert.CAName] == nil { t.Errorf("Certificate %q references nonexistent CA %q", cert.Name, cert.CAName) } } }) } } func TestMakeCertTree(t *testing.T) { rootCert := &KubeadmCert{ Name: "root", }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 8.8K bytes - Viewed (0) -
pkg/config/analysis/analyzers/analyzers_test.go
}, { name: "destinationrule with no cacert, simple at destinationlevel", inputFiles: []string{ "testdata/destinationrule-simple-destination.yaml", }, analyzer: &destinationrule.CaCertificateAnalyzer{}, expected: []message{ {msg.NoServerCertificateVerificationDestinationLevel, "DestinationRule db-tls"}, }, }, { name: "destinationrule with no cacert, mutual at destinationlevel",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 07:22:31 UTC 2024 - 42.6K bytes - Viewed (0) -
pkg/test/echo/proto/echo.pb.go
// If non-empty, make the request with the corresponding cert and key. Cert string `protobuf:"bytes,10,opt,name=cert,proto3" json:"cert,omitempty"` Key string `protobuf:"bytes,11,opt,name=key,proto3" json:"key,omitempty"` // If non-empty, verify the server CA CaCert string `protobuf:"bytes,12,opt,name=caCert,proto3" json:"caCert,omitempty"` // If non-empty, make the request with the corresponding cert and key file.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 02:27:10 UTC 2024 - 33.3K bytes - Viewed (0) -
cmd/kubeadm/app/discovery/token/token_test.go
kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm" "k8s.io/kubernetes/cmd/kubeadm/app/util/apiclient" ) func TestRetrieveValidatedConfigInfo(t *testing.T) { const ( caCert = `-----BEGIN CERTIFICATE----- MIICyDCCAbCgAwIBAgIBADANBgkqhkiG9w0BAQsFADAVMRMwEQYDVQQDEwprdWJl cm5ldGVzMB4XDTE5MTEyMDAwNDk0MloXDTI5MTExNzAwNDk0MlowFTETMBEGA1UE AxMKa3ViZXJuZXRlczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMqQ
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 14 13:07:56 UTC 2024 - 10.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/certs_test.go
See the License for the specific language governing permissions and limitations under the License. */ // This file is an exact copy of // plugin/pkg/auth/authorizer/webhook/certs_test.go package webhook var caCert = []byte(`-----BEGIN CERTIFICATE----- MIIDCzCCAfOgAwIBAgIJAKK9m2Cfg5uhMA0GCSqGSIb3DQEBCwUAMBsxGTAXBgNV BAMMEHdlYmhvb2tfYXV0aHpfY2EwIBcNMTYwMjE2MjM0NDI4WhgPMjI4OTEyMDEy MzQ0MjhaMBsxGTAXBgNVBAMMEHdlYmhvb2tfYXV0aHpfY2EwggEiMA0GCSqGSIb3
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 22 21:47:17 UTC 2020 - 8.4K bytes - Viewed (0)