Skip to content

Commit 68aad8e

Browse files
committed
Update cert hashes to match latest Let's Encrypt root setup
1 parent a0057e0 commit 68aad8e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import java.security.cert.CertificateFactory
2828
import java.security.cert.X509Certificate
2929
import javax.net.ssl.*
3030

31-
const val LETS_ENCRYPT_ROOT_SHA256 = "NgJeUutmfGsIONh0XaovCA5VJ05uv2gCb27pUOpTPxU="
31+
const val LETS_ENCRYPT_ROOT_SHA256 = "C5+lpZ7tcVwmwQIMcRtPbsQtWLABXhQzejna0wHFr8M="
3232

3333
class MainActivity : AppCompatActivity() {
3434
override fun onCreate(savedInstanceState: Bundle?) {
@@ -86,7 +86,7 @@ class MainActivity : AppCompatActivity() {
8686
GlobalScope.launch(Dispatchers.IO) {
8787
onStart(R.id.unpinned)
8888
try {
89-
val mURL = URL("https://httptoolkit.tech")
89+
val mURL = URL("https://httptoolkit.com")
9090
with(mURL.openConnection() as HttpsURLConnection) {
9191
println("URL: ${this.url}")
9292
println("Response Code: ${this.responseCode}")

app/src/main/res/xml/network_security_config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<domain-config>
44
<domain includeSubdomains="false">sha256.badssl.com</domain>
55
<pin-set>
6-
<pin digest="SHA-256">NgJeUutmfGsIONh0XaovCA5VJ05uv2gCb27pUOpTPxU=</pin>
6+
<pin digest="SHA-256">C5+lpZ7tcVwmwQIMcRtPbsQtWLABXhQzejna0wHFr8M=</pin>
77
</pin-set>
88
<trust-anchors>
99
<certificates src="@raw/lets_encrypt_isrg_root" />

0 commit comments

Comments
 (0)