Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 86 for notBefore (0.12 sec)

  1. staging/src/k8s.io/api/certificates/v1beta1/generated.proto

      // expirationSeconds is the requested duration of validity of the issued
      // certificate. The certificate signer may issue a certificate with a different
      // validity duration so a client must check the delta between the notBefore and
      // and notAfter fields in the issued certificate to determine the actual duration.
      //
      // The v1.22+ in-tree implementations of the well-known Kubernetes signers will
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/named_certificates_test.go

    	if err != nil {
    		return nil, nil, err
    	}
    
    	template := x509.Certificate{
    		SerialNumber: big.NewInt(1),
    		Subject: pkix.Name{
    			CommonName: fmt.Sprintf("%s@%d", host, time.Now().Unix()),
    		},
    		NotBefore: time.Unix(0, 0),
    		NotAfter:  time.Now().Add(time.Hour * 24 * 365 * 100),
    
    		KeyUsage:              x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 20 08:42:09 UTC 2021
    - 8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/certificates/v1beta1/types.go

    	// expirationSeconds is the requested duration of validity of the issued
    	// certificate. The certificate signer may issue a certificate with a different
    	// validity duration so a client must check the delta between the notBefore and
    	// and notAfter fields in the issued certificate to determine the actual duration.
    	//
    	// The v1.22+ in-tree implementations of the well-known Kubernetes signers will
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  4. cluster/images/etcd/migrate/integration_test.go

    	if err != nil {
    		return nil, nil, err
    	}
    
    	template := x509.Certificate{
    		SerialNumber: big.NewInt(1),
    		Subject: pkix.Name{
    			CommonName: fmt.Sprintf("%s@%d", host, time.Now().Unix()),
    		},
    		NotBefore: time.Unix(0, 0),
    		NotAfter:  time.Now().Add(time.Hour * 24 * 365 * 100),
    
    		KeyUsage:              x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 28 07:33:23 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  5. security/pkg/pki/util/keycertbundle.go

    	}
    
    	opts := &CertOptions{
    		Host:      ids[0],
    		Org:       b.cert.Issuer.Organization[0],
    		IsCA:      b.cert.IsCA,
    		TTL:       b.cert.NotAfter.Sub(b.cert.NotBefore),
    		IsDualUse: ids[0] == b.cert.Subject.CommonName,
    	}
    
    	switch (*b.privKey).(type) {
    	case *rsa.PrivateKey:
    		size, err := GetRSAKeySize(*b.privKey)
    		if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jan 21 06:07:50 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. pkg/registry/certificates/certificates/storage/metrics_test.go

    	now := time.Now()
    	tmpl := &x509.Certificate{Subject: pkix.Name{CommonName: "panda"}, SerialNumber: big.NewInt(1234), NotBefore: now, NotAfter: now.Add(duration)}
    
    	der, err := x509.CreateCertificate(rand.Reader, tmpl, caCert, crPublicKey, caPrivateKey)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. pkg/serviceaccount/claims.go

    	now := now()
    	sc := &jwt.Claims{
    		Subject:   apiserverserviceaccount.MakeUsername(sa.Namespace, sa.Name),
    		Audience:  jwt.Audience(audience),
    		IssuedAt:  jwt.NewNumericDate(now),
    		NotBefore: jwt.NewNumericDate(now),
    		Expiry:    jwt.NewNumericDate(now.Add(time.Duration(expirationSeconds) * time.Second)),
    	}
    	if utilfeature.DefaultFeatureGate.Enabled(features.ServiceAccountTokenJTI) {
    		sc.ID = newUUID()
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 21:15:10 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/certificates/v1/types_swagger_doc_generated.go

    	"expirationSeconds": "expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration.\n\nThe v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 22 00:51:25 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  9. cmd/kubelet/app/server_bootstrap_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	cert := &x509.Certificate{
    		SerialNumber: serialNumber,
    		Subject:      pkix.Name{Organization: []string{"Acme Co"}},
    		NotBefore:    from,
    		NotAfter:     to,
    
    		KeyUsage:              x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
    		ExtKeyUsage:           []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 01 05:59:41 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  10. src/crypto/x509/parser.go

    	}
    	return t, nil
    }
    
    func parseValidity(der cryptobyte.String) (time.Time, time.Time, error) {
    	notBefore, err := parseTime(&der)
    	if err != nil {
    		return time.Time{}, time.Time{}, err
    	}
    	notAfter, err := parseTime(&der)
    	if err != nil {
    		return time.Time{}, time.Time{}, err
    	}
    
    	return notBefore, notAfter, nil
    }
    
    func parseExtension(der cryptobyte.String) (pkix.Extension, error) {
    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