Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 184 for handshakes (0.4 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/http/AbstractHttpsRepoResolveIntegrationTest.groovy

            failure.assertHasCause("Could not GET '${server.uri}/repo1/my-group/my-module/1.0/")
            // exact error might vary depending on JVM version and OS
            failure.assertThatCause(matchesRegexp("Got (socket|SSL handshake) exception during request. It might be caused by SSL misconfiguration"))
        }
    
        def "build fails when client has invalid ssl configuration and has underlying cause in output"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

          when (expected) {
            is SSLHandshakeException -> {
              // On Android, the handshake fails before the certificate pinner runs.
              assertThat(expected.message!!).contains("Could not validate certificate")
            }
            is SSLPeerUnverifiedException -> {
              // On OpenJDK, the handshake succeeds but the certificate pinner fails.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  3. pkg/test/echo/common/scheme/scheme.go

    	UDP       Instance = "udp"
    	// TLS sends a TLS connection and reports back the properties of the TLS connection
    	// This is similar to `openssl s_client`
    	// Response data is not returned; only information about the TLS handshake.
    	TLS Instance = "tls"
    	// DNS does a DNS query and reports back the results.
    	DNS Instance = "dns"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 17:19:22 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/HttpsServer.java

            .build();
    
        Call call = client.newCall(new Request.Builder()
            .url(server.url("/"))
            .build());
        Response response = call.execute();
        System.out.println(response.handshake().tlsVersion());
      }
    
      public static void main(String... args) throws Exception {
        new HttpsServer().run();
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 02 14:04:37 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. src/net/http/transport_internal_test.go

    			Certificates: []tls.Certificate{cert},
    		})
    		for i := 0; i < 2; i++ {
    			sc, err := tln.Accept()
    			if err != nil {
    				t.Error(err)
    				return
    			}
    			if err := sc.(*tls.Conn).Handshake(); err != nil {
    				t.Error(err)
    				return
    			}
    			sc.Close()
    		}
    	}()
    
    	addr := ln.Addr().String()
    	req, _ := NewRequest("POST", "https://example.org/", bytes.NewBufferString("request"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:57:17 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/BouncyCastleTest.kt

        val request = Request.Builder().url("https://mozilla.org/robots.txt").build()
    
        client.newCall(request).execute().use {
          assertThat(it.protocol).isEqualTo(Protocol.HTTP_2)
          assertThat(it.handshake!!.tlsVersion).isEqualTo(TlsVersion.TLS_1_3)
        }
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. regression-test/src/androidTest/java/okhttp/regression/IssueReproductionTest.java

        try (Response response = client.newCall(request).execute()) {
          assertTrue(response.code() == 200 || response.code() == 404);
          assertEquals(Protocol.HTTP_2, response.protocol());
    
          for (Certificate c: response.handshake().peerCertificates()) {
            X509Certificate x = (X509Certificate) c;
            System.out.println(x.getSubjectDN());
          }
        }
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jul 26 06:37:08 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/CertificatePinning.kt

            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          for (certificate in response.handshake!!.peerCertificates) {
            println(CertificatePinner.pin(certificate))
          }
        }
      }
    }
    
    fun main() {
      CertificatePinning().run()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt

        override val timestampNs: Long,
        override val call: Call,
      ) : CallEvent()
    
      data class SecureConnectEnd(
        override val timestampNs: Long,
        override val call: Call,
        val handshake: Handshake?,
      ) : CallEvent() {
        override fun closes(event: CallEvent): Boolean = event is SecureConnectStart && call == event.call
      }
    
      data class ConnectionAcquired(
        override val timestampNs: Long,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/CheckHandshake.java

            "sha256/afwiKY3RxoMmLkuRW1l7QsPZTJPwDS2pdDROQjXw8ig=");
    
        @Override public Response intercept(Chain chain) throws IOException {
          for (Certificate certificate : chain.connection().handshake().peerCertificates()) {
            String pin = CertificatePinner.pin(certificate);
            if (denylist.contains(pin)) {
              throw new IOException("Denylisted peer certificate: " + pin);
            }
          }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top