Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 336 for certificates (0.09 sec)

  1. okhttp/src/test/java/okhttp3/CertificatePinnerKotlinTest.kt

        assertTrue(pin.matchesCertificate(certA1.certificate))
        assertFalse(pin.matchesCertificate(certB1.certificate))
      }
    
      @Test fun testMatchesSha1() {
        val pin = Pin("example.com", certC1Sha1Pin)
        assertTrue(pin.matchesCertificate(certC1.certificate))
        assertFalse(pin.matchesCertificate(certB1.certificate))
      }
    
      @Test fun pinList() {
        val builder =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

            )
          },
        )
    
      /**
       * ```
       * Certificate ::= SEQUENCE  {
       *   tbsCertificate       TBSCertificate,
       *   signatureAlgorithm   AlgorithmIdentifier,
       *   signatureValue       BIT STRING
       * }
       * ```
       */
      internal val certificate: BasicDerAdapter<Certificate> =
        Adapters.sequence(
          "Certificate",
          tbsCertificate,
          algorithmIdentifier,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/FessBoot.java

                        final SSLHostConfigCertificate certificate =
                                new SSLHostConfigCertificate(sslHostConfig, SSLHostConfigCertificate.Type.UNDEFINED);
                        doSetupServerConfig(logger, props, "certificateKeystoreFile", v -> certificate.setCertificateKeystoreFile(v));
                        doSetupServerConfig(logger, props, "certificateKeystorePassword", v -> certificate.setCertificateKeystorePassword(v));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt

      ): X509KeyManager {
        val keyStore = newEmptyKeyStore(keyStoreType)
        if (heldCertificate != null) {
          val chain = arrayOfNulls<Certificate>(1 + intermediates.size)
          chain[0] = heldCertificate.certificate
          intermediates.copyInto(chain, 1)
          keyStore.setKeyEntry("private", heldCertificate.keyPair.private, password, chain)
        }
    
        val factory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. architecture/security/docs/ca.dot

            grpc -> cfiles [dir=none,label="Fetch Cert",color=purple]
    
            sds -> SecretManager [label="Generate certificate"]
            SecretManager -> cfiles [label="Write certs to file"]
            cfiles [label="Certificate Files"]
            grpc [shape=diamond]
        }
    
        subgraph cluster_istiod {
            label = "Istiod"
            color="lightblue"
            ca
        }
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Aug 25 00:43:58 UTC 2023
    - 674 bytes
    - Viewed (0)
  6. okhttp-tls/src/test/java/okhttp3/tls/CertificatesTest.kt

          8V0vxo1pHXnbBrnxhS/Z3TBerw8RyQqcaWOdp+pBXyIWmR+jHk9cHZCqQveTIBsY
          jaA9VEhgdaVhxBsT2qzUNDsXlOzGsliznDfoqETb
          -----END CERTIFICATE-----
          
          """.trimIndent()
        val certificate = certificateString.decodeCertificatePem()
        assertEquals(certificateString, certificate.certificatePem())
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

          val keyManager =
            newKeyManager(
              null,
              serverCert,
              serverIntermediateCa.certificate,
            )
          val trustManager =
            newTrustManager(
              null,
              Arrays.asList(serverRootCa.certificate, clientRootCa.certificate),
              emptyList(),
            )
          val sslContext = SSLContext.getInstance("TLS")
          sslContext.init(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/CertificatePinning.java

        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          for (Certificate certificate : response.handshake().peerCertificates()) {
            System.out.println(CertificatePinner.pin(certificate));
          }
        }
      }
    
      public static void main(String... args) throws Exception {
        new CertificatePinning().run();
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Dec 08 21:30:01 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  9. regression-test/src/androidTest/java/okhttp/regression/IssueReproductionTest.java

    import okhttp3.OkHttpClient;
    import okhttp3.Protocol;
    import okhttp3.Request;
    import okhttp3.Response;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    
    import java.io.IOException;
    import java.security.cert.Certificate;
    import java.security.cert.X509Certificate;
    
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertTrue;
    
    /**
     * Simple test adaptable to show a failure in older versions of OkHttp
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jul 26 06:37:08 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  10. android-test/src/androidTest/java/okhttp/android/test/letsencrypt/LetsEncryptClientTest.kt

    import okhttp3.Request
    import okhttp3.tls.HandshakeCertificates
    import okhttp3.tls.decodeCertificatePem
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    
    /**
     * Test for new Let's Encrypt Root Certificate.
     */
    @Tag("Remote")
    class LetsEncryptClientTest {
      @Test fun get() {
        // These tests wont actually run before Android 8.0 as per
        // https://github.com/mannodermaus/android-junit5
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top