Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for BasicConstraintsValid (0.36 sec)

  1. src/crypto/x509/verify.go

    	// encryption key could only be used for Diffie-Hellman key agreement.
    
    	if certType == intermediateCertificate && (!c.BasicConstraintsValid || !c.IsCA) {
    		return CertificateInvalidError{c, NotAuthorizedToSign, ""}
    	}
    
    	if c.BasicConstraintsValid && c.MaxPathLen >= 0 {
    		numIntermediates := len(currentChain) - 1
    		if numIntermediates > c.MaxPathLen {
    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. pkg/kubelet/clustertrustbundle/clustertrustbundle_manager_test.go

    	}
    
    	template := &x509.Certificate{
    		SerialNumber: big.NewInt(0),
    		Subject: pkix.Name{
    			CommonName: cn,
    		},
    		IsCA:                  true,
    		BasicConstraintsValid: true,
    	}
    
    	cert, err := x509.CreateCertificate(rand.Reader, template, template, pub, priv)
    	if err != nil {
    		t.Fatalf("Error while making certificate: %v", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  3. src/crypto/x509/verify_test.go

    		NotAfter:     time.Now().Add(24 * time.Hour),
    
    		KeyUsage:              KeyUsageKeyEncipherment | KeyUsageDigitalSignature | KeyUsageCertSign,
    		ExtKeyUsage:           []ExtKeyUsage{ExtKeyUsageServerAuth},
    		BasicConstraintsValid: true,
    		IsCA:                  isCA,
    	}
    	if issuer == nil {
    		issuer = template
    		issuerKey = priv
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
  4. pkg/volume/projected/projected_test.go

    	}
    
    	template := &x509.Certificate{
    		SerialNumber: big.NewInt(0),
    		Subject: pkix.Name{
    			CommonName: cn,
    		},
    		IsCA:                  true,
    		BasicConstraintsValid: true,
    	}
    
    	cert, err := x509.CreateCertificate(rand.Reader, template, template, pub, priv)
    	if err != nil {
    		t.Fatalf("Error while making certificate: %v", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 40.5K bytes
    - Viewed (0)
  5. src/crypto/x509/parser.go

    				if err != nil {
    					return err
    				}
    			case 19:
    				out.IsCA, out.MaxPathLen, err = parseBasicConstraintsExtension(e.Value)
    				if err != nil {
    					return err
    				}
    				out.BasicConstraintsValid = true
    				out.MaxPathLenZero = out.MaxPathLen == 0
    			case 17:
    				out.DNSNames, out.EmailAddresses, out.IPAddresses, out.URIs, err = parseSANExtension(e.Value)
    				if err != nil {
    					return err
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  6. cmd/test-utils_test.go

    		NotAfter:  notAfter,
    
    		KeyUsage:              x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
    		ExtKeyUsage:           []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
    		BasicConstraintsValid: true,
    	}
    
    	hosts := strings.Split(host, ",")
    	for _, h := range hosts {
    		if ip := net.ParseIP(h); ip != nil {
    			template.IPAddresses = append(template.IPAddresses, ip)
    		} else {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"CANotAuthorizedForExtKeyUsage", Const, 10},
    		{"CANotAuthorizedForThisName", Const, 0},
    		{"CertPool", Type, 0},
    		{"Certificate", Type, 0},
    		{"Certificate.AuthorityKeyId", Field, 0},
    		{"Certificate.BasicConstraintsValid", Field, 0},
    		{"Certificate.CRLDistributionPoints", Field, 2},
    		{"Certificate.DNSNames", Field, 0},
    		{"Certificate.EmailAddresses", Field, 0},
    		{"Certificate.ExcludedDNSDomains", Field, 9},
    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 CertPool struct
    pkg crypto/x509, type Certificate struct
    pkg crypto/x509, type Certificate struct, AuthorityKeyId []uint8
    pkg crypto/x509, type Certificate struct, BasicConstraintsValid bool
    pkg crypto/x509, type Certificate struct, DNSNames []string
    pkg crypto/x509, type Certificate struct, EmailAddresses []string
    pkg crypto/x509, type Certificate struct, ExtKeyUsage []ExtKeyUsage
    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