Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 101 for commonName (0.15 sec)

  1. 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)
  2. 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)
  3. pkg/test/csrctrl/authority/authority.go

    	}
    
    	serialNumber, err := rand.Int(rand.Reader, serialNumberLimit)
    	if err != nil {
    		return nil, fmt.Errorf("unable to generate a serial number for %s: %v", cr.Subject.CommonName, err)
    	}
    
    	tmpl := &x509.Certificate{
    		SerialNumber:       serialNumber,
    		Subject:            cr.Subject,
    		DNSNames:           cr.DNSNames,
    		IPAddresses:        cr.IPAddresses,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 28 18:22:37 UTC 2021
    - 3K bytes
    - Viewed (0)
  4. 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)
  5. okhttp-tls/api/okhttp-tls.api

    	public final fun build ()Lokhttp3/tls/HeldCertificate;
    	public final fun certificateAuthority (I)Lokhttp3/tls/HeldCertificate$Builder;
    	public final fun commonName (Ljava/lang/String;)Lokhttp3/tls/HeldCertificate$Builder;
    	public final fun duration (JLjava/util/concurrent/TimeUnit;)Lokhttp3/tls/HeldCertificate$Builder;
    	public final fun ecdsa256 ()Lokhttp3/tls/HeldCertificate$Builder;
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Feb 26 19:17:33 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  6. misc/ios/detect.go

    		check(f.Close())
    
    		cert, err := plistExtract(fname, "DeveloperCertificates:0")
    		check(err)
    		pcert, err := x509.ParseCertificate(cert)
    		check(err)
    		fmt.Printf("export GOIOS_DEV_ID=\"%s\"\n", pcert.Subject.CommonName)
    
    		appID, err := plistExtract(fname, "Entitlements:application-identifier")
    		check(err)
    		fmt.Printf("export GOIOS_APP_ID=%s\n", appID)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:30 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  7. security/pkg/server/ca/authenticate/xfcc_authenticator.go

    		return nil, fmt.Errorf(message)
    	}
    	ids := []string{}
    	for _, cc := range clientCerts {
    		ids = append(ids, cc.URI...)
    		ids = append(ids, cc.DNS...)
    		if cc.Subject != nil {
    			ids = append(ids, cc.Subject.CommonName)
    		}
    	}
    
    	return &security.Caller{
    		AuthSource: security.AuthSourceClientCertificate,
    		Identities: ids,
    	}, nil
    }
    
    func isTrustedAddress(addr string, trustedCidrs []string) bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 17:05:56 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. 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)
  9. security/pkg/pki/util/generate_csr.go

    		if options.IsDualUse {
    			cn, err := DualUseCommonName(h)
    			if err != nil {
    				// log and continue
    				log.Errorf("dual-use failed for CSR template - omitting CN (%v)", err)
    			} else {
    				template.Subject.CommonName = cn
    			}
    		}
    		template.ExtraExtensions = []pkix.Extension{*s}
    	}
    
    	return template, nil
    }
    
    // AppendRootCerts appends root certificates in RootCertFile to the input certificate.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 06 12:48:53 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  10. 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)
Back to top