Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for addSubjectAlternativeName (0.24 sec)

  1. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

            .certificateAuthority(1)
            .commonName("root")
            .addSubjectAlternativeName("root_ca.com")
            .build()
        serverIntermediateCa =
          HeldCertificate.Builder()
            .signedBy(serverRootCa)
            .certificateAuthority(0)
            .serialNumber(2L)
            .commonName("intermediate_ca")
            .addSubjectAlternativeName("intermediate_ca.com")
            .build()
        serverCert =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

          .isCloseTo(now.toDouble() + durationMillis, deltaMillis)
      }
    
      @Test
      fun subjectAlternativeNames() {
        val heldCertificate =
          HeldCertificate.Builder()
            .addSubjectAlternativeName("1.1.1.1")
            .addSubjectAlternativeName("cash.app")
            .build()
        val certificate = heldCertificate.certificate
        assertThat(certificate.subjectAlternativeNames.toList()).containsExactly(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

        // https://www.gosecure.net/blog/2020/10/27/weakness-in-java-tls-host-verification/
        val heldCertificate =
          HeldCertificate.Builder()
            .commonName("Foo Corp")
            .addSubjectAlternativeName("k.com")
            .addSubjectAlternativeName("tel.com")
            .build()
        val session = session(heldCertificate.certificatePem())
        assertThat(verifier.verify("foo.com", session)).isFalse()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

            .commonName("attacker")
            .addSubjectAlternativeName("attacker.com")
            .signedBy(pinnedIntermediate)
            .build()
        val phonyVictim =
          HeldCertificate.Builder()
            .serialNumber(6L)
            .signedBy(attackerSwitch)
            .addSubjectAlternativeName("victim.com")
            .commonName("victim")
            .build()
        val certificatePinner =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt

          HeldCertificate.Builder()
            .signedBy(rootCa)
            .serialNumber(2L)
            .commonName(server.hostName)
            .addSubjectAlternativeName(server.hostName)
            .addSubjectAlternativeName("san.com")
            .addSubjectAlternativeName("*.wildcard.com")
            .addSubjectAlternativeName("differentdns.com")
            .build()
        serverIps = Dns.SYSTEM.lookup(server.hostName)
        dns[server.hostName] = serverIps
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

         * extension will be omitted.
         */
        fun addSubjectAlternativeName(altName: String) =
          apply {
            altNames += altName
          }
    
        /**
         * Set this certificate's common name (CN). Historically this held the hostname of TLS
         * certificate, but that practice was deprecated by [RFC 2818][rfc_2818] and replaced with
         * [addSubjectAlternativeName]. If unset a random string will be used.
         *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  7. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

        val certificate =
          HeldCertificate.Builder()
            .certificateAuthority(3)
            .commonName("Jurassic Park")
            .organizationalUnit("Gene Research")
            .addSubjectAlternativeName("*.example.com")
            .addSubjectAlternativeName("www.example.org")
            .validityInterval(-1000L, 2000L)
            .serialNumber(17L)
            .build()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

          private val localhostHandshakeCertificatesWithRsa2048: HandshakeCertificates by lazy {
            val heldCertificate =
              HeldCertificate.Builder()
                .commonName("localhost")
                .addSubjectAlternativeName("localhost")
                .rsa2048()
                .build()
            return@lazy HandshakeCertificates.Builder()
              .heldCertificate(heldCertificate)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.3K bytes
    - Viewed (1)
  9. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        val serverCa =
          HeldCertificate.Builder()
            .certificateAuthority(0)
            .build()
        val serverCertificate =
          HeldCertificate.Builder()
            .signedBy(serverCa)
            .addSubjectAlternativeName(server.hostName)
            .build()
        val serverHandshakeCertificates =
          HandshakeCertificates.Builder()
            .addTrustedCertificate(clientCa.certificate)
            .heldCertificate(serverCertificate)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  10. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        val serverCa =
          HeldCertificate.Builder()
            .certificateAuthority(0)
            .build()
        val serverCertificate =
          HeldCertificate.Builder()
            .signedBy(serverCa)
            .addSubjectAlternativeName(server.hostName)
            .build()
        val serverHandshakeCertificates =
          HandshakeCertificates.Builder()
            .addTrustedCertificate(clientCa.certificate)
            .heldCertificate(serverCertificate)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.5K bytes
    - Viewed (0)
Back to top