Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for LoadX509KeyPair (0.2 sec)

  1. internal/config/certs.go

    	}
    
    	return x509Certs, nil
    }
    
    // LoadX509KeyPair - load an X509 key pair (private key , certificate)
    // from the provided paths. The private key may be encrypted and is
    // decrypted using the ENV_VAR: MINIO_CERT_PASSWD.
    func LoadX509KeyPair(certFile, keyFile string) (tls.Certificate, error) {
    	certPEMBlock, err := os.ReadFile(certFile)
    	if err != nil {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. internal/config/etcd/etcd.go

    		if etcdClientCertFile != "" && etcdClientCertKey != "" {
    			cfg.TLS.GetClientCertificate = func(unused *tls.CertificateRequestInfo) (*tls.Certificate, error) {
    				cert, err := tls.LoadX509KeyPair(etcdClientCertFile, etcdClientCertKey)
    				return &cert, err
    			}
    		}
    	}
    	return cfg, nil
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri May 16 14:27:42 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. internal/event/target/webhook.go

    	args := target.args
    	transport := target.transport
    
    	if args.ClientCert != "" && args.ClientKey != "" {
    		manager, err := certs.NewManager(context.Background(), args.ClientCert, args.ClientKey, tls.LoadX509KeyPair)
    		if err != nil {
    			return err
    		}
    		manager.ReloadOnSignal(syscall.SIGHUP) // allow reloads upon SIGHUP
    		transport.TLSClientConfig.GetClientCertificate = manager.GetClientCertificate
    	}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. 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
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 15K bytes
    - Viewed (0)
  5. internal/http/transports.go

    	transport := s.NewHTTPTransportWithTimeout(1 * time.Minute)
    	if clientCert != "" && clientKey != "" {
    		c, err := certs.NewManager(ctx, clientCert, clientKey, tls.LoadX509KeyPair)
    		if err != nil {
    			return nil, err
    		}
    		if c != nil {
    			c.UpdateReloadDuration(10 * time.Second)
    			c.ReloadOnSignal(syscall.SIGHUP) // allow reloads upon SIGHUP
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 08 17:51:53 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  6. internal/config/certs_test.go

    			os.Remove(privateKey)
    			t.Fatalf("Test %d: failed to create tmp certificate file: %v", i, err)
    		}
    
    		if testCase.password != "" {
    			t.Setenv(EnvCertPassword, testCase.password)
    		}
    		_, err = LoadX509KeyPair(certificate, privateKey)
    		if err != nil && !testCase.shouldFail {
    			t.Errorf("Test %d: test should succeed but it failed: %v", i, err)
    		}
    		if err == nil && testCase.shouldFail {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  7. internal/config/lambda/target/webhook.go

    	args := target.args
    	transport := target.transport
    
    	if args.ClientCert != "" && args.ClientKey != "" {
    		manager, err := certs.NewManager(context.Background(), args.ClientCert, args.ClientKey, tls.LoadX509KeyPair)
    		if err != nil {
    			return err
    		}
    		manager.ReloadOnSignal(syscall.SIGHUP) // allow reloads upon SIGHUP
    		transport.TLSClientConfig.GetClientCertificate = manager.GetClientCertificate
    	}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Mon Jul 08 21:39:49 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. cmd/common-main.go

    	if x509Certs, err = config.ParsePublicCertFile(getPublicCertFile()); err != nil {
    		return nil, nil, false, err
    	}
    
    	manager, err = certs.NewManager(GlobalContext, getPublicCertFile(), getPrivateKeyFile(), config.LoadX509KeyPair)
    	if err != nil {
    		return nil, nil, false, err
    	}
    
    	// MinIO has support for multiple certificates. It expects the following structure:
    	//  certs/
    	//   │
    	//   ├─ public.crt
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 32.5K bytes
    - Viewed (3)
Back to top