Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetCert (0.04 sec)

  1. internal/http/server_test.go

    		{[]string{nonLoopBackIP + ":9000"}, handler, nil},
    		{[]string{"127.0.0.1:9000", nonLoopBackIP + ":9000"}, handler, nil},
    		{[]string{"127.0.0.1:9000"}, handler, getCert},
    		{[]string{nonLoopBackIP + ":9000"}, handler, getCert},
    		{[]string{"127.0.0.1:9000", nonLoopBackIP + ":9000"}, handler, getCert},
    	}
    
    	for i, testCase := range testCases {
    		server := NewServer(testCase.addrs).
    			UseHandler(testCase.handler)
    		if testCase.certFn != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 18:42:47 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. cmd/utils.go

    	logger.AuditLog(ctx, nil, nil, nil)
    }
    
    func newTLSConfig(getCert certs.GetCertificateFunc) *tls.Config {
    	if getCert == nil {
    		return nil
    	}
    
    	tlsConfig := &tls.Config{
    		PreferServerCipherSuites: true,
    		MinVersion:               tls.VersionTLS12,
    		NextProtos:               []string{"http/1.1", "h2"},
    		GetCertificate:           getCert,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  3. cmd/server-main.go

    		}
    		if !globalEndpoints.HTTPS() && globalIsTLS {
    			logger.Fatal(config.ErrCertsAndHTTPEndpoints(nil), "Unable to start the server")
    		}
    	}
    
    	var getCert certs.GetCertificateFunc
    	if globalTLSCerts != nil {
    		getCert = globalTLSCerts.GetCertificate
    	}
    
    	// Check for updates in non-blocking manner.
    	go func() {
    		if !globalServerCtxt.Quiet && !globalInplaceUpdateDisabled {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  4. internal/http/listener_test.go

    import (
    	"context"
    	"crypto/tls"
    	"net"
    	"runtime"
    	"strconv"
    	"strings"
    	"sync/atomic"
    	"testing"
    	"time"
    
    	"github.com/minio/minio-go/v7/pkg/set"
    )
    
    var serverPort uint32 = 60000
    
    var getCert = func(*tls.ClientHelloInfo) (*tls.Certificate, error) {
    	certificate, err := getTLSCert()
    	if err != nil {
    		return nil, err
    	}
    	return &certificate, nil
    }
    
    func getTLSCert() (tls.Certificate, error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top