Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for wildcardsCannotMatchIpAddresses (0.11 sec)

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

        assertThat(verifier.verify("local.host", session)).isFalse()
        assertThat(verifier.verify("127.0.0.1", session)).isTrue()
        assertThat(verifier.verify("127.0.0.2", session)).isFalse()
      }
    
      @Test fun wildcardsCannotMatchIpAddresses() {
        // openssl req -x509 -nodes -days 36500 -subj '/CN=*.0.0.1' -newkey rsa:512 -out cert.pem
        val session =
          session(
            """
            -----BEGIN CERTIFICATE-----
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 40.3K bytes
    - Viewed (0)
Back to top