Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 66 for CommonName (0.31 sec)

  1. src/crypto/x509/pkix/pkix.go

    	ret = n.appendRDNs(ret, n.PostalCode, oidPostalCode)
    	ret = n.appendRDNs(ret, n.Organization, oidOrganization)
    	ret = n.appendRDNs(ret, n.OrganizationalUnit, oidOrganizationalUnit)
    	if len(n.CommonName) > 0 {
    		ret = n.appendRDNs(ret, []string{n.CommonName}, oidCommonName)
    	}
    	if len(n.SerialNumber) > 0 {
    		ret = n.appendRDNs(ret, []string{n.SerialNumber}, oidSerialNumber)
    	}
    	for _, atv := range n.ExtraNames {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/pkiutil/pki_helpers.go

    	if !cfg.NotAfter.IsZero() {
    		notAfter = cfg.NotAfter
    	}
    
    	tmpl := x509.Certificate{
    		SerialNumber: serial,
    		Subject: pkix.Name{
    			CommonName:   cfg.CommonName,
    			Organization: cfg.Organization,
    		},
    		DNSNames:              []string{cfg.CommonName},
    		NotBefore:             notBefore,
    		NotAfter:              notAfter,
    		KeyUsage:              keyUsage,
    		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)
  3. mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt

       * Host header).
       */
      @Test
      fun domainFronting() {
        val heldCertificate =
          HeldCertificate.Builder()
            .commonName("server name")
            .addSubjectAlternativeName("url-host.com")
            .build()
        val handshakeCertificates =
          HandshakeCertificates.Builder()
            .heldCertificate(heldCertificate)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt

      private val localhost: HandshakeCertificates by lazy {
        // Generate a self-signed cert for the server to serve and the client to trust.
        val heldCertificate =
          HeldCertificate.Builder()
            .commonName("localhost")
            .addSubjectAlternativeName("localhost")
            .addSubjectAlternativeName("localhost.localdomain")
            .build()
        return@lazy HandshakeCertificates.Builder()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. okhttp-tls/README.md

        .certificateAuthority(0)
        .build();
    
    // Create a server certificate and a server that uses it.
    HeldCertificate serverCertificate = new HeldCertificate.Builder()
        .commonName("ingen")
        .addSubjectAlternativeName(server.getHostName())
        .signedBy(rootCertificate)
        .build();
    HandshakeCertificates serverCertificates = new HandshakeCertificates.Builder()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/OpenJSSETest.kt

        // Generate a self-signed cert for the server to serve and the client to trust.
        // can't use TlsUtil.localhost with a non OpenJSSE trust manager
        val heldCertificate =
          HeldCertificate.Builder()
            .commonName("localhost")
            .addSubjectAlternativeName("localhost")
            .build()
        val handshakeCertificates =
          HandshakeCertificates.Builder()
            .heldCertificate(heldCertificate)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top