Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for NotBefore (0.34 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

          }
        }
    
      /**
       * ```
       * Validity ::= SEQUENCE {
       *   notBefore      Time,
       *   notAfter       Time
       * }
       * ```
       */
      private val validity: BasicDerAdapter<Validity> =
        Adapters.sequence(
          "Validity",
          time,
          time,
          decompose = {
            listOf(
              it.notBefore,
              it.notAfter,
            )
          },
          construct = {
            Validity(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  10. 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)
Back to top