Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for CertificateInvalidError (0.26 sec)

  1. src/crypto/x509/verify.go

    	CANotAuthorizedForExtKeyUsage
    )
    
    // CertificateInvalidError results when an odd error occurs. Users of this
    // library probably want to handle all these errors uniformly.
    type CertificateInvalidError struct {
    	Cert   *Certificate
    	Reason InvalidReason
    	Detail string
    }
    
    func (e CertificateInvalidError) Error() string {
    	switch e.Reason {
    	case NotAuthorizedToSign:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:39 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  2. src/crypto/x509/root_darwin.go

    	// using TLS or OCSP for that.
    
    	if ret, err := macOS.SecTrustEvaluateWithError(trustObj); err != nil {
    		switch ret {
    		case macOS.ErrSecCertificateExpired:
    			return nil, CertificateInvalidError{c, Expired, err.Error()}
    		case macOS.ErrSecHostNameMismatch:
    			return nil, HostnameError{c, opts.DNSName}
    		case macOS.ErrSecNotTrusted:
    			return nil, UnknownAuthorityError{Cert: c}
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 00:36:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. src/crypto/x509/root_windows.go

    		status := chainCtx.TrustStatus.ErrorStatus
    		switch status {
    		case syscall.CERT_TRUST_IS_NOT_TIME_VALID:
    			return CertificateInvalidError{c, Expired, ""}
    		case syscall.CERT_TRUST_IS_NOT_VALID_FOR_USAGE:
    			return CertificateInvalidError{c, IncompatibleUsage, ""}
    		// TODO(filippo): surface more error statuses.
    		default:
    			return UnknownAuthorityError{c, nil, nil}
    		}
    	}
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:41:40 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  4. src/crypto/x509/verify_test.go

    		}
    	}
    }
    
    func expectExpired(t *testing.T, err error) {
    	if inval, ok := err.(CertificateInvalidError); !ok || inval.Reason != Expired {
    		t.Fatalf("error was not Expired: %v", err)
    	}
    }
    
    func expectUsageError(t *testing.T, err error) {
    	if inval, ok := err.(CertificateInvalidError); !ok || inval.Reason != IncompatibleUsage {
    		t.Fatalf("error was not IncompatibleUsage: %v", err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_server.go

    		}
    
    		for _, cert := range certs[1:] {
    			opts.Intermediates.AddCert(cert)
    		}
    
    		chains, err := certs[0].Verify(opts)
    		if err != nil {
    			var errCertificateInvalid x509.CertificateInvalidError
    			if errors.As(err, &x509.UnknownAuthorityError{}) {
    				c.sendAlert(alertUnknownCA)
    			} else if errors.As(err, &errCertificateInvalid) && errCertificateInvalid.Reason == x509.Expired {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  6. api/go1.10.txt

    pkg crypto/x509, type Certificate struct, PermittedIPRanges []*net.IPNet
    pkg crypto/x509, type Certificate struct, PermittedURIDomains []string
    pkg crypto/x509, type Certificate struct, URIs []*url.URL
    pkg crypto/x509, type CertificateInvalidError struct, Detail string
    pkg crypto/x509, type CertificateRequest struct, URIs []*url.URL
    pkg crypto/x509, type VerifyOptions struct, MaxConstraintComparisions int
    pkg crypto/x509/pkix, method (Name) String() string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 06 05:00:01 UTC 2018
    - 30.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Certificate.UnknownExtKeyUsage", Field, 0},
    		{"Certificate.Version", Field, 0},
    		{"CertificateInvalidError", Type, 0},
    		{"CertificateInvalidError.Cert", Field, 0},
    		{"CertificateInvalidError.Detail", Field, 10},
    		{"CertificateInvalidError.Reason", Field, 0},
    		{"CertificateRequest", Type, 3},
    		{"CertificateRequest.Attributes", Field, 3},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg crypto/x509, type Certificate struct, UnknownExtKeyUsage []asn1.ObjectIdentifier
    pkg crypto/x509, type Certificate struct, Version int
    pkg crypto/x509, type CertificateInvalidError struct
    pkg crypto/x509, type CertificateInvalidError struct, Cert *Certificate
    pkg crypto/x509, type CertificateInvalidError struct, Reason InvalidReason
    pkg crypto/x509, type ConstraintViolationError struct
    pkg crypto/x509, type ExtKeyUsage int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top