- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for GetCert (0.68 sec)
-
src/crypto/x509/cert_pool.go
// // The rawSubject is Certificate.RawSubject and must be non-empty. // The getCert func may be called 0 or more times. func (s *CertPool) addCertFunc(rawSum224 sum224, rawSubject string, getCert func() (*Certificate, error), constraint func([]*Certificate) error) { if getCert == nil { panic("getCert can't be nil") } // Check that the certificate isn't being added twice. if s.haveSum[rawSum224] {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 19:41:40 UTC 2023 - 8.9K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509_test.go
data, err := ioutil.ReadFile(filename) if err != nil { t.Fatalf("error reading %s: %v", filename, err) } certs = append(certs, getCert(t, string(data))) } return certs } func getCert(t *testing.T, pemData string) *x509.Certificate { t.Helper() pemBlock, _ := pem.Decode([]byte(pemData)) cert, err := x509.ParseCertificate(pemBlock.Bytes) if err != nil { t.Fatalf("Error parsing cert: %v", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 23:23:03 UTC 2024 - 36.9K bytes - Viewed (0) -
src/crypto/x509/root_darwin.go
if err != nil { return nil, errors.New("invalid leaf certificate") } macOS.CFArrayAppendValue(certs, leaf) if opts.Intermediates != nil { for _, lc := range opts.Intermediates.lazyCerts { c, err := lc.getCert() if err != nil { return nil, err } sc, err := macOS.SecCertificateCreateWithData(c.Raw) if err != nil { return nil, err } macOS.CFArrayAppendValue(certs, sc) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 01 00:36:38 UTC 2023 - 3.5K bytes - Viewed (0) -
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) -
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 (3) -
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) -
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) -
src/crypto/x509/x509_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:00:16 UTC 2024 - 163.4K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.20.md
- Fixed a bug in client-go where new clients with customized `Dial`, `Proxy`, `GetCert` config may get stale HTTP transports. ([#95427](https://github.com/kubernetes/kubernetes/pull/95427), [@roycaihw](https://github.com/roycaihw)) [SIG API Machinery]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 19 21:05:45 UTC 2022 - 409K bytes - Viewed (0)