Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 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. 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)
  4. 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)
Back to top