- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for LoadX509KeyPair (0.48 sec)
-
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) -
internal/config/etcd/etcd.go
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri May 16 14:27:42 UTC 2025 - 5.2K bytes - Viewed (0) -
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) -
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, andRegistered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 15K bytes - Viewed (0) -
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) -
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) -
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) -
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)