- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for subjectAlternativeNames (0.2 sec)
-
okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt
} @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( listOf(GeneralName.iPAddress, "1.1.1.1"),
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 22.5K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt
get() { return tbsCertificate.subject .flatten() .firstOrNull { it.type == ObjectIdentifiers.ORGANIZATIONAL_UNIT_NAME } ?.value } val subjectAlternativeNames: Extension? get() { return tbsCertificate.extensions.firstOrNull { it.id == ObjectIdentifiers.SUBJECT_ALTERNATIVE_NAME } } val basicConstraints: Extension get() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6.4K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt
), ) assertThat(okHttpCertificate.commonName).isEqualTo("Jurassic Park") assertThat(okHttpCertificate.organizationalUnitName).isEqualTo("Gene Research") assertThat(okHttpCertificate.subjectAlternativeNames).isEqualTo( Extension( id = SUBJECT_ALTERNATIVE_NAME, critical = true, value = listOf( CertificateAdapters.generalNameDnsName to "*.example.com",
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 43.9K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/sni/SniOverrideTest.kt
Log.d("SniOverrideTest", s) try { val cert = session.peerCertificates[0] as X509Certificate for (name in cert.subjectAlternativeNames) { if (name[0] as Int == 2) { Log.d("SniOverrideTest", "cert: " + name[1]) } } true } catch (e: Exception) { false
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt
} private fun certificateSANs(peerCertificate: X509Certificate): List<String> { return when (val subjectAlternativeNames = peerCertificate.subjectAlternativeNames) { null -> listOf() else -> subjectAlternativeNames.map { c: List<*> -> c[1] as String } } } @Test fun replacementCharacter() { // $ cat ./cert.cnf // [req]
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 40.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt
return altIpaNames + altDnsNames } private fun getSubjectAltNames( certificate: X509Certificate, type: Int, ): List<String> { try { val subjectAltNames = certificate.subjectAlternativeNames ?: return emptyList() val result = mutableListOf<String>() for (subjectAltName in subjectAltNames) { if (subjectAltName == null || subjectAltName.size < 2) continue
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 14:55:09 UTC 2024 - 7.7K bytes - Viewed (0)