Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for notBefore (0.13 sec)

  1. cmd/kubeadm/app/phases/certs/renewal/manager_test.go

    			},
    			expectedOrganization: testCertOrganization,
    		},
    		{
    			name:     "Certificate renewal for a certificate embedded in a kubeconfig file",
    			certName: "admin.conf",
    			createCertFunc: func() *x509.Certificate {
    				return writeTestKubeconfig(t, dir, "admin.conf", testCACert, testCAKey, notBefore, notAfter)
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. pkg/serviceaccount/claims_test.go

    			_, err := v.Validate(context.Background(), "", &jwt.Claims{Expiry: &expiry, NotBefore: &tc.notBefore}, tc.private)
    			if len(tc.expectErr) > 0 {
    				if errStr := errString(err); tc.expectErr != errStr {
    					t.Fatalf("expected error %q but got %q", tc.expectErr, errStr)
    				}
    			} else if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/util/pkiutil/pki_helpers.go

    	if isCA {
    		keyUsage |= x509.KeyUsageCertSign
    	}
    
    	RemoveDuplicateAltNames(&cfg.AltNames)
    
    	notBefore := caCert.NotBefore
    	if !cfg.NotBefore.IsZero() {
    		notBefore = cfg.NotBefore
    	}
    
    	notAfter := notBefore.Add(kubeadmconstants.CertificateValidityPeriod)
    	if !cfg.NotAfter.IsZero() {
    		notAfter = cfg.NotAfter
    	}
    
    	certTmpl := x509.Certificate{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/certs/util.go

    // the expected NotBefore. Truncate (round) expectedNotBefore to 1 second, since the certificate stores
    // with seconds as the maximum precision.
    func AssertCertificateHasNotBefore(t *testing.T, cert *x509.Certificate, expectedNotBefore time.Time) {
    	truncated := expectedNotBefore.Truncate(time.Second)
    	if !cert.NotBefore.Equal(truncated) {
    		t.Errorf("cert has NotBefore %v, expected %v", cert.NotBefore, truncated)
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go

    func writeTestCertificate(t *testing.T, dir, name string, caCert *x509.Certificate, caKey crypto.Signer, organization []string, notBefore, notAfter time.Time) *x509.Certificate {
    	cert, key, err := pkiutil.NewCertAndKey(caCert, caKey, makeTestCertConfig(organization, notBefore, notAfter))
    	if err != nil {
    		t.Fatalf("couldn't generate certificate: %v", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 15:17:24 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/phases/certs/certlist_test.go

    				ClusterConfiguration: kubeadmapi.ClusterConfiguration{
    					EncryptionAlgorithm: kubeadmapi.EncryptionAlgorithmECDSAP256,
    				},
    			},
    			expectedConfig: &pkiutil.CertConfig{
    				Config: certutil.Config{
    					NotBefore: now.Add(-backdate),
    				},
    				EncryptionAlgorithm: kubeadmapi.EncryptionAlgorithmECDSAP256,
    			},
    		},
    		{
    			name: "cert validity is set",
    			cert: &KubeadmCert{
    				CAName:       "some-ca",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. pilot/pkg/bootstrap/certcontroller.go

    			return fmt.Errorf("x509 cert - ParseCertificates() error: %v", err)
    		}
    		for _, c := range x509Cert {
    			log.Infof("x509 cert - Issuer: %q, Subject: %q, SN: %x, NotBefore: %q, NotAfter: %q",
    				c.Issuer, c.Subject, c.SerialNumber,
    				c.NotBefore.Format(time.RFC3339), c.NotAfter.Format(time.RFC3339))
    		}
    	}
    
    	log.Info("Istiod certificates are reloaded")
    	s.certMu.Lock()
    	s.istiodCert = &keyPair
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  8. cmd/kube-apiserver/app/testing/testserver.go

    		tenThousandHoursLater := time.Now().Add(10_000 * time.Hour)
    		certTmpl := x509.Certificate{
    			Subject: pkix.Name{
    				CommonName: "misty",
    			},
    			SerialNumber: serial,
    			NotBefore:    proxySigningCert.NotBefore,
    			NotAfter:     tenThousandHoursLater,
    			KeyUsage:     x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
    			ExtKeyUsage: []x509.ExtKeyUsage{
    				x509.ExtKeyUsageClientAuth,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  9. src/crypto/x509/x509_test.go

    						Type:  []int{2, 5, 4, 42},
    						Value: "Gopher",
    					},
    					// This should override the Country, above.
    					{
    						Type:  []int{2, 5, 4, 6},
    						Value: "NL",
    					},
    				},
    			},
    			NotBefore: time.Unix(1000, 0),
    			NotAfter:  time.Unix(100000, 0),
    
    			SignatureAlgorithm: test.sigAlgo,
    
    			SubjectKeyId: []byte{1, 2, 3, 4},
    			KeyUsage:     KeyUsageCertSign,
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  10. 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)
Back to top