- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 47 for commonName (0.2 sec)
-
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt
), ), ) } @Test fun `certificate attributes`() { val certificate = HeldCertificate.Builder() .certificateAuthority(3) .commonName("Jurassic Park") .organizationalUnit("Gene Research") .addSubjectAlternativeName("*.example.com") .addSubjectAlternativeName("www.example.org") .validityInterval(-1000L, 2000L)
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 43.9K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
* [addSubjectAlternativeName]. If unset a random string will be used. * * [rfc_2818]: https://tools.ietf.org/html/rfc2818 */ fun commonName(cn: String) = apply { this.commonName = cn } /** Sets the certificate's organizational unit (OU). If unset this field will be omitted. */ fun organizationalUnit(ou: String) = apply {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.6K bytes - Viewed (0) -
security/pkg/pki/util/generate_cert.go
// In this case, set CN as determined by DualUseCommonName(subjectIDsInString). if len(csr.Subject.CommonName) != 0 { if cn, err := DualUseCommonName(subjectIDsInString); err != nil { // log and continue log.Errorf("dual-use failed for cert template - omitting CN (%v)", err) } else { subject.CommonName = cn } } now := time.Now() serialNum, err := genSerialNum() if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 02 14:34:38 UTC 2023 - 14.2K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/certs_test.go
} assert.ElementsMatch(t, certConfig.Organization, csr.Subject.Organization, "organizations not equal") if csr.Subject.CommonName != certConfig.CommonName { t.Errorf("expected common name %q, got %q", certConfig.CommonName, csr.Subject.CommonName) } assert.ElementsMatch(t, certConfig.AltNames.DNSNames, csr.DNSNames, "dns names not equal")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 31 21:49:21 UTC 2024 - 23.3K bytes - Viewed (0) -
pkg/registry/certificates/certificates/storage/metrics_test.go
) func Test_countCSRDurationMetric(t *testing.T) { caPrivateKey, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader) if err != nil { t.Fatal(err) } caCert, err := certutil.NewSelfSignedCACert(certutil.Config{CommonName: "test-ca"}, caPrivateKey) if err != nil { t.Fatal(err) } tests := []struct { name string success bool obj, old runtime.Object
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 14:34:53 UTC 2024 - 13.7K bytes - Viewed (0) -
cmd/kube-apiserver/app/testing/testserver.go
proxySigningKey, err = testutil.NewPrivateKey() if err != nil { return result, err } proxySigningCert, err = cert.NewSelfSignedCACert(cert.Config{CommonName: "front-proxy-ca"}, proxySigningKey) if err != nil { return result, err } } proxyCACertFile := filepath.Join(s.SecureServing.ServerCert.CertDirectory, "proxy-ca.crt")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 17.6K bytes - Viewed (0) -
pkg/kubelet/certificate/bootstrap/bootstrap.go
if !connected { return errors.New("timed out waiting to connect to apiserver") } return nil } // requestNodeCertificate will create a certificate signing request for a node // (Organization and CommonName for the CSR will be set as expected for node // certificates) and send it to API server, then it will watch the object's // status, once approved by API server, it will return the API server's issued
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 27 08:04:25 UTC 2022 - 14.2K bytes - Viewed (0) -
pkg/kubelet/certificate/kubelet.go
// don't return a template if we have no addresses to request for if len(hostnames) == 0 && len(ips) == 0 { return nil } return &x509.CertificateRequest{ Subject: pkix.Name{ CommonName: fmt.Sprintf("system:node:%s", nodeName), Organization: []string{"system:nodes"}, }, DNSNames: hostnames, IPAddresses: ips, } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 03:07:16 UTC 2024 - 10.3K bytes - Viewed (0) -
cmd/sts-handlers.go
// Associate any service accounts to the certificate CN parentUser := "tls" + getKeySeparator() + certificate.Subject.CommonName claims[expClaim] = UTCNow().Add(expiry).Unix() claims[subClaim] = certificate.Subject.CommonName claims[audClaim] = certificate.Subject.Organization claims[issClaim] = certificate.Issuer.CommonName claims[parentClaim] = parentUser secretKey, err := getTokenSigningKey() if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 11 03:13:30 UTC 2024 - 33.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt
assertThat(verifier.verify("0:0:0:0:0:FFFF:C0A8:0101", session)).isTrue() } @Test fun generatedCertificate() { val heldCertificate = HeldCertificate.Builder() .commonName("Foo Corp") .addSubjectAlternativeName("foo.com") .build() val session = session(heldCertificate.certificatePem()) assertThat(verifier.verify("foo.com", session)).isTrue()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 40.3K bytes - Viewed (0)