Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for notBefore (0.18 sec)

  1. security/pkg/pki/util/generate_cert_test.go

    				IsCA:        false,
    				KeyUsage:    x509.KeyUsageDigitalSignature | x509.KeyUsageKeyEncipherment,
    				NotBefore:   notBefore,
    				TTL:         ttl,
    				Org:         "MyOrg",
    			},
    		},
    		"RSA: Server and client cert with DNS SAN": {
    			certOptions: CertOptions{
    				Host:         "test_client.com",
    				NotBefore:    notBefore,
    				TTL:          ttl,
    				SignerCert:   rsaCaCert,
    				SignerPriv:   rsaCaPriv,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 06 12:48:53 UTC 2023
    - 29.4K bytes
    - Viewed (0)
  2. 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)
  3. security/pkg/pki/util/generate_cert.go

    		extKeyUsages = append(extKeyUsages, x509.ExtKeyUsageServerAuth)
    	}
    	if options.IsClient {
    		extKeyUsages = append(extKeyUsages, x509.ExtKeyUsageClientAuth)
    	}
    
    	notBefore := time.Now()
    	if !options.NotBefore.IsZero() {
    		notBefore = options.NotBefore
    	}
    
    	serialNum, err := genSerialNum()
    	if err != nil {
    		return nil, err
    	}
    
    	subject := pkix.Name{
    		Organization: []string{options.Org},
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 02 14:34:38 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top