- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for keyFiles (0.18 sec)
-
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) -
pilot/pkg/bootstrap/server_test.go
} if err := os.WriteFile(caFile, testcerts.CACert, 0o644); err != nil { // nolint: vetshadow t.Fatalf("WriteFile(%v) failed: %v", caFile, err) } tlsOptions := TLSOptions{ CertFile: certFile, KeyFile: keyFile, CaCertFile: caFile, } // setup cert watches. if err := s.initFileCertificateWatches(tlsOptions); err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 23.1K bytes - Viewed (0) -
src/crypto/tls/bogo_shim_test.go
cfg.NextProtos = append(cfg.NextProtos, alpns[1:1+alpnLen]) alpns = alpns[alpnLen+1:] } } if *hostName != "" { cfg.ServerName = *hostName } if *keyfile != "" || *certfile != "" { pair, err := LoadX509KeyPair(*certfile, *keyfile) if err != nil { log.Fatalf("load key-file err: %s", err) } cfg.Certificates = []Certificate{pair} } if *trustCert != "" { pool := x509.NewCertPool()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:25:39 UTC 2024 - 12.6K bytes - Viewed (0) -
pilot/pkg/bootstrap/options.go
} // TLSOptions is optional TLS parameters for Istiod server. type TLSOptions struct { // CaCertFile and related are set using CLI flags. CaCertFile string CertFile string KeyFile string TLSCipherSuites []string CipherSuits []uint16 // This is the parsed cipher suites } var ( PodNamespace = env.Register("POD_NAMESPACE", constants.IstioSystemNamespace, "").Get()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 6.1K bytes - Viewed (0) -
internal/kms/config.go
if err != nil { return nil, err } conf.GetClientCertificate = func(*tls.CertificateRequestInfo) (*tls.Certificate, error) { return &cert, nil } } else { loadX509KeyPair := func(certFile, keyFile string) (tls.Certificate, error) { // Manually load the certificate and private key into memory. // We need to check whether the private key is encrypted, and // if so, decrypt it using the user-provided password.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Jun 12 14:31:26 UTC 2024 - 13.9K bytes - Viewed (0) -
pilot/pkg/bootstrap/server.go
// Use the DNS certificate provided via args or in well known location. err = s.initFileCertificateWatches(TLSOptions{ CaCertFile: caCertPath, KeyFile: tlsKeyPath, CertFile: tlsCertPath, }) if err != nil { // Not crashing istiod - This typically happens if certs are missing and in tests. log.Errorf("error initializing certificate watches: %v", err)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 46.3K bytes - Viewed (0) -
pkg/kubelet/kubelet.go
} } else if kubeDeps.TLSOptions.CertFile != "" && kubeDeps.TLSOptions.KeyFile != "" && utilfeature.DefaultFeatureGate.Enabled(features.ReloadKubeletServerCertificateFile) { klet.serverCertificateManager, err = kubeletcertificate.NewKubeletServerCertificateDynamicFileManager(kubeDeps.TLSOptions.CertFile, kubeDeps.TLSOptions.KeyFile) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 126.1K bytes - Viewed (0) -
cmd/test-utils_test.go
// Fetch TLS key and pem files from test-data/ directory. // dir, _ := os.Getwd() // testDataDir := filepath.Join(filepath.Dir(dir), "test-data") // // pemFile := filepath.Join(testDataDir, "server.pem") // keyFile := filepath.Join(testDataDir, "server.key") cer, err := tls.X509KeyPair(cert, key) if err != nil { t.Fatalf("Failed to load certificate: %v", err) } config := &tls.Config{Certificates: []tls.Certificate{cer}}
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 76.9K bytes - Viewed (0)