Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 119 for certFiles (0.18 sec)

  1. pilot/pkg/keycertbundle/watcher.go

    		default:
    		}
    	}
    }
    
    // SetFromFilesAndNotify sets the key cert and root cert from files and notify the watchers.
    func (w *Watcher) SetFromFilesAndNotify(keyFile, certFile, rootCert string) error {
    	cert, err := os.ReadFile(certFile)
    	if err != nil {
    		return err
    	}
    	key, err := os.ReadFile(keyFile)
    	if err != nil {
    		return err
    	}
    	caBundle, err := os.ReadFile(rootCert)
    	if err != nil {
    		return err
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 05 14:00:18 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/dynamic_sni_content.go

    func NewDynamicSNIContentFromFiles(purpose, certFile, keyFile string, sniNames ...string) (*DynamicFileSNIContent, error) {
    	servingContent, err := NewDynamicServingContentFromFiles(purpose, certFile, keyFile)
    	if err != nil {
    		return nil, err
    	}
    
    	ret := &DynamicFileSNIContent{
    		DynamicCertKeyPairContent: servingContent,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 18:29:15 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  3. security/pkg/pki/util/generate_cert_test.go

    			}
    		})
    	}
    }
    
    func TestGenCertFromCSR(t *testing.T) {
    	keyFile := "../testdata/key.pem"
    	certFile := "../testdata/cert.pem"
    	keycert, err := NewVerifiedKeyCertBundleFromFile(certFile, keyFile, nil, certFile)
    	if err != nil {
    		t.Errorf("Failed to load CA key and cert from files: %s, %s", keyFile, certFile)
    	}
    	signingCert, signingKey, _, _ := keycert.GetAll()
    
    	// Then generates signee's key pairs.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 06 12:48:53 UTC 2023
    - 29.4K bytes
    - Viewed (0)
  4. pkg/test/framework/components/echo/common/call.go

    		ServerFirst:             opts.Port.ServerFirst,
    		Cert:                    opts.TLS.Cert,
    		Key:                     opts.TLS.Key,
    		CaCert:                  opts.TLS.CaCert,
    		CertFile:                opts.TLS.CertFile,
    		KeyFile:                 opts.TLS.KeyFile,
    		CaCertFile:              opts.TLS.CaCertFile,
    		InsecureSkipVerify:      opts.TLS.InsecureSkipVerify,
    		Alpn:                    getProtoALPN(opts.TLS.Alpn),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Oct 08 09:39:20 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  5. pkg/kubelet/certificate/bootstrap/bootstrap_test.go

    				TLSClientConfig: restclient.TLSClientConfig{
    					CertFile: filepath.Join(fileDir, "mycertvalid.crt"),
    					KeyFile:  filepath.Join(fileDir, "mycertvalid.key"),
    				},
    				BearerToken: "",
    			},
    			expectedClientConfig: &restclient.Config{
    				Host: "https://cluster-b.com",
    				TLSClientConfig: restclient.TLSClientConfig{
    					CertFile: filepath.Join(fileDir, "mycertvalid.crt"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 09 14:24:11 UTC 2023
    - 13K bytes
    - Viewed (0)
  6. pilot/pkg/bootstrap/certcontroller.go

    	if err := s.istiodCertBundleWatcher.SetFromFilesAndNotify(tlsOptions.KeyFile, tlsOptions.CertFile, tlsOptions.CaCertFile); err != nil {
    		return fmt.Errorf("set keyCertBundle failed: %v", err)
    	}
    	// TODO: Setup watcher for root and restart server if it changes.
    	for _, file := range []string{tlsOptions.CertFile, tlsOptions.KeyFile} {
    		log.Infof("adding watcher for certificate %s", file)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  7. pilot/pkg/bootstrap/server_test.go

    		close(stop)
    		_ = s.fileWatcher.Close()
    	}()
    
    	certFile := filepath.Join(dir, "cert-file.yaml")
    	keyFile := filepath.Join(dir, "key-file.yaml")
    	caFile := filepath.Join(dir, "ca-file.yaml")
    
    	// load key and cert files.
    	if err := os.WriteFile(certFile, testcerts.ServerCert, 0o644); err != nil { // nolint: vetshadow
    		t.Fatalf("WriteFile(%v) failed: %v", certFile, err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/options/etcd_test.go

    					Prefix: "/registry",
    					Transport: storagebackend.TransportConfig{
    						ServerList:    nil,
    						KeyFile:       "/var/run/kubernetes/etcd.key",
    						TrustedCAFile: "/var/run/kubernetes/etcdca.crt",
    						CertFile:      "/var/run/kubernetes/etcdce.crt",
    					},
    					CompactionInterval:    storagebackend.DefaultCompactInterval,
    					CountMetricPollPeriod: time.Minute,
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/upgrade/postupgrade_test.go

    	defer os.RemoveAll(tmpdir)
    	os.Chmod(tmpdir, 0766)
    
    	certPath := filepath.Join(tmpdir, constants.APIServerCertName)
    	certFile, err := os.OpenFile(certPath, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0666)
    	if err != nil {
    		t.Fatalf("Failed to create cert file %s: %v", certPath, err)
    	}
    	certFile.Close()
    
    	keyPath := filepath.Join(tmpdir, constants.APIServerKeyName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 15 11:40:04 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/config_flags.go

    	}
    	if f.CacheDir != nil {
    		flags.StringVar(f.CacheDir, flagCacheDir, *f.CacheDir, "Default cache directory")
    	}
    
    	// add config options
    	if f.CertFile != nil {
    		flags.StringVar(f.CertFile, flagCertFile, *f.CertFile, "Path to a client certificate file for TLS")
    	}
    	if f.KeyFile != nil {
    		flags.StringVar(f.KeyFile, flagKeyFile, *f.KeyFile, "Path to a client key file for TLS")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 11 15:04:11 UTC 2023
    - 16.9K bytes
    - Viewed (0)
Back to top