Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 220 for getCert (0.15 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).
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509_test.go

    			Opts:  getDefaultVerifyOptions(t),
    			Certs: getCerts(t, selfSignedCert),
    
    			ExpectErr: true,
    		},
    
    		"server cert disallowed": {
    			Opts:  getDefaultVerifyOptions(t),
    			Certs: getCerts(t, serverCert),
    
    			ExpectErr: true,
    		},
    		"server cert allowing non-client cert usages": {
    			Opts:  x509.VerifyOptions{Roots: getRootCertPool(t)},
    			Certs: getCerts(t, serverCert),
    
    			ExpectOK:  true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 23:23:03 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  3. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  4. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 04 15:12:57 UTC 2024
    - 34.5K bytes
    - Viewed (1)
  5. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. pkg/test/echo/proto/echo.pb.go

    	}
    	return false
    }
    
    func (x *ForwardEchoRequest) GetFollowRedirects() bool {
    	if x != nil {
    		return x.FollowRedirects
    	}
    	return false
    }
    
    func (x *ForwardEchoRequest) GetCert() string {
    	if x != nil {
    		return x.Cert
    	}
    	return ""
    }
    
    func (x *ForwardEchoRequest) GetKey() string {
    	if x != nil {
    		return x.Key
    	}
    	return ""
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 02:27:10 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  7. src/crypto/x509/x509_test.go

    	}
    	for i := range a.lazyCerts {
    		la, lb := a.lazyCerts[i], b.lazyCerts[i]
    		if !bytes.Equal(la.rawSubject, lb.rawSubject) {
    			return false
    		}
    		ca, err := la.getCert()
    		if err != nil {
    			panic(err)
    		}
    		cb, err := la.getCert()
    		if err != nil {
    			panic(err)
    		}
    		if !ca.Equal(cb) {
    			return false
    		}
    	}
    
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/locklistener/FileLockCommunicatorTest.groovy

        def cleanup() {
            communicator.stop()
        }
    
        def "knows port"() {
            expect:
            communicator.getPort() != -1
        }
    
        def "does not know port after stopping"() {
            when:
            communicator.stop()
    
            then:
            communicator.getPort() == -1
        }
    
        def "can receive lock id and type"() {
            FileLockPacketPayload receivedPayload
    
            start {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:49 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticator.java

                        case "iss":
                            attributes.put("iss", jsonParser.getText());
                            break;
                        case "sub":
                            attributes.put("sub", jsonParser.getText());
                            break;
                        case "azp":
                            attributes.put("azp", jsonParser.getText());
                            break;
                        case "email":
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/annotations/TypeAnnotationMetadataStore.java

     * However, when both getter methods are present, Gradle needs to decide which method to use to access the property value. This can be solved
     * by explicitly ignoring one of the two getters using the ignore annotation.
     * </p>
     *
     * <p>
     * A special case of this is when both getters are generated by Groovy.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top