Skip to content

Commit e81e603

Browse files
authored
Merge pull request #5 from AlexanderSpoettl/patch-1
Update Cert Hashes
2 parents a5b8491 + 46a133b commit e81e603

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/src/main/java/tech/httptoolkit/pinning_demo/MainActivity.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ import javax.net.ssl.*
4646
// We check for both the long-term root & intermediate, because some servers don't seem to
4747
// include the ISRG in the chain (assuming it's in our trust store). Unfortunately the R3
4848
// intermediate cert will expire in September 2025, but we may have our own testserver by then.
49-
const val LETS_ENCRYPT_ISRG_X1_ROOT_PK_SHA256 = "NYbU7PBwV4y9J67c4guWTki8FJ+uudrXL0a4V4aRcrg="
50-
const val LETS_ENCRYPT_R3_INTERM_PK_SHA256 = "jQJTbIh0grw0/1TkHSumWb+Fs0Ggogr621gT3PvPKG0="
49+
const val LETS_ENCRYPT_ISRG_X1_ROOT_PK_SHA256 = "J2Rs/XhqmFqx7ihj0wVdUwVKMp9txlbWZCUK6zdaylg="
50+
const val LETS_ENCRYPT_R3_INTERM_PK_SHA256 = "y7xVm0TVJNahMr2sZydE2jQH8SquXV9yLF9seROHHHU="
51+
5152

5253
@Suppress("UNUSED_PARAMETER")
5354
@DelicateCoroutinesApi
@@ -575,4 +576,4 @@ class MainActivity : AppCompatActivity() {
575576
val certHash = cert.publicKey.encoded.toByteString().sha256()
576577
return certHash == pin.decodeBase64()
577578
}
578-
}
579+
}

0 commit comments

Comments
 (0)