- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testCertificatePinningFailure (0.33 sec)
-
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
assertEquals( "CN=localhost", (response.handshake!!.peerCertificates.first() as X509Certificate).subjectDN.name, ) } } @Test fun testCertificatePinningFailure() { enableTls() val certificatePinner = CertificatePinner.Builder() .add(server.hostName, "sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") .build()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 27K bytes - Viewed (0)