Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for NotBefore (0.47 sec)

  1. src/crypto/x509/platform_test.go

    				DNSNames:     []string{"valid.testing.golang.invalid"},
    				NotBefore:    now.Add(-time.Hour),
    				NotAfter:     now.Add(time.Hour),
    				ExtKeyUsage:  []ExtKeyUsage{ExtKeyUsageServerAuth},
    			},
    		},
    		{
    			name: "valid (with name)",
    			cert: &Certificate{
    				SerialNumber: big.NewInt(1),
    				DNSNames:     []string{"valid.testing.golang.invalid"},
    				NotBefore:    now.Add(-time.Hour),
    				NotAfter:     now.Add(time.Hour),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 17:18:29 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. 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)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

            )
    
          return result
        }
    
        private fun validity(): Validity {
          val notBefore = if (notBefore != -1L) notBefore else System.currentTimeMillis()
          val notAfter = if (notAfter != -1L) notAfter else notBefore + DEFAULT_DURATION_MILLIS
          return Validity(
            notBefore = notBefore,
            notAfter = notAfter,
          )
        }
    
        private fun extensions(): MutableList<Extension> {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

        assertThat(certificate.subjectAlternativeNames).isNull()
        val deltaMillis = 1000.0
        val durationMillis = TimeUnit.MINUTES.toMillis((60 * 24).toLong())
        assertThat(certificate.notBefore.time.toDouble())
          .isCloseTo(now.toDouble(), deltaMillis)
        assertThat(certificate.notAfter.time.toDouble())
          .isCloseTo(now.toDouble() + durationMillis, deltaMillis)
      }
    
      @Test
      fun customInterval() {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/crypto/x509/hybrid_pool_test.go

    	rootTmpl := &x509.Certificate{
    		SerialNumber:          big.NewInt(1),
    		Subject:               pkix.Name{CommonName: "Go test root"},
    		IsCA:                  true,
    		BasicConstraintsValid: true,
    		NotBefore:             time.Now().Add(-time.Hour),
    		NotAfter:              time.Now().Add(time.Hour * 10),
    	}
    	k, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:48:11 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. security/pkg/pki/util/keycertbundle_test.go

    func TestExtractRootCertExpiryTimestamp(t *testing.T) {
    	t0 := time.Now()
    	cert, key, err := GenCertKeyFromOptions(CertOptions{
    		Host:         "citadel.testing.istio.io",
    		NotBefore:    t0,
    		TTL:          time.Minute,
    		Org:          "MyOrg",
    		IsCA:         true,
    		IsSelfSigned: true,
    		IsServer:     true,
    		RSAKeySize:   2048,
    	})
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jan 21 06:07:50 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top