File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
java/tech/httptoolkit/pinning_demo Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import java.security.cert.CertificateFactory
28
28
import java.security.cert.X509Certificate
29
29
import javax.net.ssl.*
30
30
31
- const val LETS_ENCRYPT_ROOT_SHA256 = " NgJeUutmfGsIONh0XaovCA5VJ05uv2gCb27pUOpTPxU ="
31
+ const val LETS_ENCRYPT_ROOT_SHA256 = " C5+lpZ7tcVwmwQIMcRtPbsQtWLABXhQzejna0wHFr8M ="
32
32
33
33
class MainActivity : AppCompatActivity () {
34
34
override fun onCreate (savedInstanceState : Bundle ? ) {
@@ -86,7 +86,7 @@ class MainActivity : AppCompatActivity() {
86
86
GlobalScope .launch(Dispatchers .IO ) {
87
87
onStart(R .id.unpinned)
88
88
try {
89
- val mURL = URL (" https://httptoolkit.tech " )
89
+ val mURL = URL (" https://httptoolkit.com " )
90
90
with (mURL.openConnection() as HttpsURLConnection ) {
91
91
println (" URL: ${this .url} " )
92
92
println (" Response Code: ${this .responseCode} " )
Original file line number Diff line number Diff line change 3
3
<domain-config >
4
4
<domain includeSubdomains =" false" >sha256.badssl.com</domain >
5
5
<pin-set >
6
- <pin digest =" SHA-256" >NgJeUutmfGsIONh0XaovCA5VJ05uv2gCb27pUOpTPxU =</pin >
6
+ <pin digest =" SHA-256" >C5+lpZ7tcVwmwQIMcRtPbsQtWLABXhQzejna0wHFr8M =</pin >
7
7
</pin-set >
8
8
<trust-anchors >
9
9
<certificates src =" @raw/lets_encrypt_isrg_root" />
You can’t perform that action at this time.
0 commit comments