Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for BasicConstraintsValid (0.46 sec)

  1. cmd/kubeadm/app/util/pkiutil/pki_helpers.go

    		SerialNumber:          serial,
    		NotBefore:             notBefore,
    		NotAfter:              notAfter,
    		KeyUsage:              keyUsage,
    		ExtKeyUsage:           cfg.Usages,
    		BasicConstraintsValid: true,
    		IsCA:                  isCA,
    	}
    	certDERBytes, err := x509.CreateCertificate(cryptorand.Reader, &certTmpl, caCert, key.Public(), caKey)
    	if err != nil {
    		return nil, err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/serving_test.go

    		KeyUsage:              x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign,
    		ExtKeyUsage:           []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
    		BasicConstraintsValid: true,
    		IsCA:                  true,
    	}
    
    	if ip := netutils.ParseIPSloppy(host); ip != nil {
    		template.IPAddresses = append(template.IPAddresses, ip)
    	} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 15:52:39 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. cmd/kube-apiserver/app/testing/testserver.go

    			NotAfter:     tenThousandHoursLater,
    			KeyUsage:     x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
    			ExtKeyUsage: []x509.ExtKeyUsage{
    				x509.ExtKeyUsageClientAuth,
    			},
    			BasicConstraintsValid: true,
    		}
    		certDERBytes, err := x509.CreateCertificate(rand.Reader, &certTmpl, proxySigningCert, signer.Public(), proxySigningKey)
    		if err != nil {
    			return result, err
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. src/crypto/tls/boring_test.go

    		KeyUsage:              x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
    		ExtKeyUsage:           []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth, x509.ExtKeyUsageClientAuth},
    		BasicConstraintsValid: true,
    	}
    	if mode&^boringCertFIPSOK == boringCertLeaf {
    		tmpl.DNSNames = []string{"example.com"}
    	} else {
    		tmpl.IsCA = true
    		tmpl.KeyUsage |= x509.KeyUsageCertSign
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  5. src/crypto/x509/name_constraints_test.go

    		Subject: pkix.Name{
    			CommonName: name,
    		},
    		NotBefore:             time.Unix(1000, 0),
    		NotAfter:              time.Unix(2000, 0),
    		KeyUsage:              KeyUsageCertSign,
    		BasicConstraintsValid: true,
    		IsCA:                  true,
    	}
    
    	if err := addConstraintsToTemplate(constraints, template); err != nil {
    		return nil, err
    	}
    
    	if parent == nil {
    		parent = template
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 22:40:21 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  6. pkg/apis/certificates/validation/validation.go

    			continue
    		}
    
    		if !cert.IsCA {
    			allErrors = append(allErrors, field.Invalid(path, "<value omitted>", fmt.Sprintf("entry %d does not have the CA bit set", i)))
    			continue
    		}
    
    		if !cert.BasicConstraintsValid {
    			allErrors = append(allErrors, field.Invalid(path, "<value omitted>", fmt.Sprintf("entry %d has invalid basic constraints", i)))
    			continue
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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