User Tools

Site Tools


android:keystore

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
android:keystore [2018/11/19 14:35] percyandroid:keystore [2020/08/10 13:37] (current) – old revision restored (2018/11/19 14:35) percy
Line 1: Line 1:
-====== Android Keystore ====== 
-===== Generate the Keystore ===== 
- 
-  keytool -genkey -v -keystore parkbox.keystore -alias ParkBox -keyalg RSA -keysize 2048 -validity 1000000 
- 
-===== Get the MD5/SHA1 of the signature  ===== 
-  keytool -list -v -keystore parkbox.keystore -alias ParkBox -storepass 111111 -keypass 111111 
- 
-<code> 
-keytool -list -v -keystore parkbox.keystore -alias ParkBox -storepass 111111 -keypass 111111 
-Alias name: ParkBox 
-Creation date: Nov 19, 2018 
-Entry type: PrivateKeyEntry 
-Certificate chain length: 1 
-Certificate[1]: 
-Owner: CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown 
-Issuer: CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown 
-Serial number: ea147d8 
-Valid from: Mon Nov 19 14:17:17 CST 2018 until: Tue Oct 16 14:17:17 CST 4756 
-Certificate fingerprints: 
- MD5:  01:12:F7:F4:67:E2:99:6C:C7:3D:9B:F1:56:BA:1F:B0 
- SHA1: AD:40:F9:78:B8:82:1B:82:C3:88:90:70:3E:63:F2:30:4A:71:CC:08 
- SHA256: A4:52:AB:E2:8A:C4:37:0B:12:2D:20:7E:A4:F9:A3:3A:6E:C0:E3:95:E5:2F:43:46:E8:D8:19:6D:7F:47:F8:BE 
- Signature algorithm name: SHA256withRSA 
- Version: 3 
- 
-Extensions: 
- 
-#1: ObjectId: 2.5.29.14 Criticality=false 
-SubjectKeyIdentifier [ 
-KeyIdentifier [ 
-0000: 0F C7 66 35 28 DC 02 A0   1F 06 4F AA E2 3B DD 11  ..f5(.....O..;.. 
-0010: 8D 5E 8B BB                                        .^.. 
-] 
-] 
-</code> 
- 
-=====Signature Kesytore Verify ===== 
-  jarsigner -verify -certs -verbose  your.apk 
- 
-===== Get signature within one Android App ===== 
- 
-  - https://open.weixin.qq.com/zh_CN/htmledition/res/dev/download/sdk/Gen_Signature_Android.apk 
- 
- 
-===== Get signature use Android code ===== 
-<code> 
-Signature[] sigs = context.getPackageManager().getPackageInfo(context.getPackageName(), PackageManager.GET_SIGNATURES).signatures; 
-for (Signature sig : sigs) 
-{ 
-    Trace.i("MyApp", "Signature hashcode : " + sig.hashCode()); 
-} 
-</code> 
- 
-===== Refer ===== 
-  - https://stackoverflow.com/questions/5578871/how-to-get-apk-signing-signature 
-  - https://docs.microsoft.com/en-us/xamarin/android/deploy-test/signing/keystore-signature?tabs=macos 
- 
- 
  
/var/www/dokuwiki/wiki/data/attic/android/keystore.1542609338.txt.gz · Last modified: 2018/11/19 14:35 by percy