From 839465ced5b8aad780f99d0871101fd302147ee1 Mon Sep 17 00:00:00 2001 From: Tebbe Ubben Date: Wed, 1 May 2019 16:56:06 +0200 Subject: [PATCH] Demo keystore --- app/src/main/assets/revoked_certs.txt | 2 ++ demo_keystore.jks | Bin 0 -> 2066 bytes revoking_leaked_apks.md | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 demo_keystore.jks create mode 100644 revoking_leaked_apks.md diff --git a/app/src/main/assets/revoked_certs.txt b/app/src/main/assets/revoked_certs.txt index e69de29bb2..59a55d9e42 100644 --- a/app/src/main/assets/revoked_certs.txt +++ b/app/src/main/assets/revoked_certs.txt @@ -0,0 +1,2 @@ +#Demo certificate +51:6D:12:67:4C:27:F4:9B:9F:E5:42:9B:01:B3:98:E4:66:2B:85:B7:A8:DD:70:32:B7:6A:D7:97:9A:0D:97:10 \ No newline at end of file diff --git a/demo_keystore.jks b/demo_keystore.jks new file mode 100644 index 0000000000000000000000000000000000000000..38c3bcabaa2542ca1766a2a8855312fad4a32973 GIT binary patch literal 2066 zcmV+t2<`X&?f&fm0006200031000311Z!n^FaQ7nYID?MkpKV%05F0C{4fp%3M&Qy z1OX}n5di@O00e>r=(~+So85MMr!;sa5}UidNE8Dr+6eT`9kB1K726A6(g}mqjzfPF z9ts_tfDS0k)~WdB{m$J|-1HVGceSlKG<(v7$~Z)lX;VnjPxAXsSMn%&kdET9&MONL zA68xN4Tlq91gCZ6ACYpId2}`aJc?OXHmFlHd`cc`z&^J zxWhaOhi%Shi+);D?o7dUZicrG6i~}j%5YQsKb6>Pos1 zulW7l*iBdQpbF_w3rMOEIjY~nmxK)wo^EC3Yb`W6ap+g;Xv|9Z1^qzkZbZ_}w%2y$ zM;hyI9Ys*^-(frj9S`RLvIPWAdH57maBx}Vp<#iF35CKQB*2zfu9<-e=1Sv`4dL5p z!r0l@C?aFmF28{l^K+Q`PKGIVbCl<$qlp-~ZiT>(u(X7}d;;s2Dc=dCfOEHBjeiD` zO028r9E19Jq)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K&i(s_hQwaCl&zxKd!)j{&H~MaC&rdv#-(8#e?}1iiLzl<@x# keytool -printcert -file CERT.RSA +Owner: O=AndroidAPS +Issuer: O=AndroidAPS +Serial number: 30546c5b +Valid from: Wed May 01 16:37:40 CEST 2019 until: Sun Apr 24 16:37:40 CEST 2044 +Certificate fingerprints: + SHA1: C4:EF:80:AD:CD:07:6F:28:B6:2E:8C:AE:C5:54:19:39:2E:E5:15:0D + SHA256: 51:6D:12:67:4C:27:F4:9B:9F:E5:42:9B:01:B3:98:E4:66:2B:85:B7:A8:DD:70:32:B7:6A:D7:97:9A:0D:97:10 +Signature algorithm name: SHA256withRSA +Subject Public Key Algorithm: 2048-bit RSA key +Version: 3 +``` +Now revoke the certificate by attaching the SHA-256 checksum to ``app/src/main/assets/revoked_certs.txt`` and prepending a comment (starting with ``#``). Finally, push the changes to ``master`` branch to populate the changes. + +### Demo keystore +You can verify this works by signing an APK with the demo keystore. The password for both the keystore and the key is ``androidaps``. \ No newline at end of file