Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 53 for SerialNumber (0.33 sec)

  1. pkg/apis/certificates/validation/validation_test.go

    	goodCert1 := mustMakeCertificate(t, &x509.Certificate{
    		SerialNumber: big.NewInt(0),
    		Subject: pkix.Name{
    			CommonName: "root1",
    		},
    		IsCA:                  true,
    		BasicConstraintsValid: true,
    	})
    
    	goodCert2 := mustMakeCertificate(t, &x509.Certificate{
    		SerialNumber: big.NewInt(0),
    		Subject: pkix.Name{
    			CommonName: "root2",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 61K bytes
    - Viewed (0)
  2. src/crypto/x509/verify_test.go

    	if err != nil {
    		return nil, nil, err
    	}
    
    	serialNumberLimit := new(big.Int).Lsh(big.NewInt(1), 128)
    	serialNumber, _ := rand.Int(rand.Reader, serialNumberLimit)
    
    	template := &Certificate{
    		SerialNumber: serialNumber,
    		Subject:      pkix.Name{CommonName: cn},
    		NotBefore:    time.Now().Add(-1 * time.Hour),
    		NotAfter:     time.Now().Add(24 * time.Hour),
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
  3. pkg/registry/certificates/certificates/storage/metrics_test.go

    	crPublicKey := &caPrivateKey.PublicKey // this is supposed to be public key of the signee but it does not matter for this test
    
    	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)
  4. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509.go

    		if i%2 == 1 && i != len(h)-1 {
    			sb.WriteRune(':')
    		}
    	}
    	return sb.String()
    }
    
    func certificateIdentifier(c *x509.Certificate) string {
    	return fmt.Sprintf(
    		"SN=%d, SKID=%s, AKID=%s",
    		c.SerialNumber,
    		columnSeparatedHex(c.SubjectKeyId),
    		columnSeparatedHex(c.AuthorityKeyId),
    	)
    }
    
    // VerifyOptionFunc is function which provides a shallow copy of the VerifyOptions to the authenticator.  This allows
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 18 01:31:22 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  5. 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
    	s.certMu.Unlock()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/pkiutil/pki_helpers.go

    		Subject: pkix.Name{
    			CommonName:   cfg.CommonName,
    			Organization: cfg.Organization,
    		},
    		DNSNames:              cfg.AltNames.DNSNames,
    		IPAddresses:           cfg.AltNames.IPs,
    		SerialNumber:          serial,
    		NotBefore:             notBefore,
    		NotAfter:              notAfter,
    		KeyUsage:              keyUsage,
    		ExtKeyUsage:           cfg.Usages,
    		BasicConstraintsValid: true,
    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. staging/src/k8s.io/apiserver/pkg/server/options/serving_test.go

    	priv, err := rsa.GenerateKey(cryptorand.Reader, 2048)
    	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),
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 15:52:39 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  8. cmd/kube-apiserver/app/testing/testserver.go

    		}
    		serial = new(big.Int).Add(serial, big.NewInt(1))
    		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{
    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. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        builder = builder.addSubjectAlternativeName("")
        builder = builder.commonName("")
        builder = builder.organizationalUnit("")
        builder = builder.serialNumber(BigInteger.ZERO)
        builder = builder.serialNumber(0L)
        builder = builder.keyPair(keyPair)
        builder = builder.keyPair(keyPair.public, keyPair.private)
        builder = builder.signedBy(HeldCertificate.Builder().build())
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  10. src/crypto/tls/boring_test.go

    	org := name
    	parentOrg := ""
    	if i := strings.Index(org, "_"); i >= 0 {
    		org = org[:i]
    		parentOrg = name[i+1:]
    	}
    	tmpl := &x509.Certificate{
    		SerialNumber: big.NewInt(1),
    		Subject: pkix.Name{
    			Organization: []string{org},
    		},
    		NotBefore: time.Unix(0, 0),
    		NotAfter:  time.Unix(0, 0),
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top