- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for rawCerts (0.11 sec)
-
pkg/spiffe/spiffe.go
func (v *PeerCertVerifier) VerifyPeerCert(rawCerts [][]byte, _ [][]*x509.Certificate) error { if len(rawCerts) == 0 { // Peer doesn't present a certificate. Just skip. Other authn methods may be used. return nil } var peerCert *x509.Certificate intCertPool := x509.NewCertPool() for id, rawCert := range rawCerts { cert, err := x509.ParseCertificate(rawCert) if err != nil { return err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 11.1K bytes - Viewed (0) -
src/crypto/tls/handshake_client_test.go
sentinelErr := errors.New("TestVerifyPeerCertificate") verifyPeerCertificateCallback := func(called *bool, rawCerts [][]byte, validatedChains [][]*x509.Certificate) error { if l := len(rawCerts); l != 1 { return fmt.Errorf("got len(rawCerts) = %d, wanted 1", l) } if len(validatedChains) == 0 { return errors.New("got len(validatedChains) = 0, wanted non-zero") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 88.7K bytes - Viewed (0) -
src/crypto/tls/tls_test.go
} clientConfig.VerifyPeerCertificate = func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error { clientVerifyPeerCertificates = true return nil } serverConfig.VerifyConnection = func(cs ConnectionState) error { serverVerifyConnection = true return nil } serverConfig.VerifyPeerCertificate = func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 60.5K bytes - Viewed (0) -
pkg/istio-agent/agent_test.go
Certificates: []tls.Certificate{cert}, ClientAuth: tls.VerifyClientCertIfGiven, ClientCAs: peerCertVerifier.GetGeneralCertPool(), VerifyPeerCertificate: func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error { err := peerCertVerifier.VerifyPeerCert(rawCerts, verifiedChains) if err != nil { log.Infof("Could not verify certificate: %v", err) } return err }, MinVersion: tls.VersionTLS12, }))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 22:12:28 UTC 2024 - 33.4K bytes - Viewed (0) -
pilot/pkg/bootstrap/server.go
ClientAuth: tls.VerifyClientCertIfGiven, ClientCAs: peerCertVerifier.GetGeneralCertPool(), VerifyPeerCertificate: func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error { err := peerCertVerifier.VerifyPeerCert(rawCerts, verifiedChains) if err != nil { log.Infof("Could not verify certificate: %v", err) } return err }, MinVersion: tls.VersionTLS12,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 46.3K bytes - Viewed (0) -
src/crypto/tls/common.go
// rawCerts may be empty on the server if ClientAuth is RequestClientCert or // VerifyClientCertIfGiven. // // This callback is not invoked on resumed connections, as certificates are // not re-verified on resumption. // // verifiedChains and its contents should not be modified. VerifyPeerCertificate func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 59.1K bytes - Viewed (0) -
src/cmd/go/internal/modget/query.go
func newQuery(raw string) (*query, error) { pattern, rawVers, found := strings.Cut(raw, "@") if found && (strings.Contains(rawVers, "@") || rawVers == "") { return nil, fmt.Errorf("invalid module version syntax %q", raw) } // If no version suffix is specified, assume @upgrade. // If -u=patch was specified, assume @patch instead. version := rawVers if version == "" { if getU.version == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 27 15:48:25 UTC 2023 - 11.2K bytes - Viewed (0)