SHA-1 fingerprint of keystore certificate

前端 未结 30 3089
长发绾君心
长发绾君心 2020-11-21 23:36

Is the method for getting a SHA-1 fingerprint the same as the method of getting the a fingerprint? Previously, I was running this command:

30条回答
  •  一整个雨季
    2020-11-22 00:21

    I am using Ubuntu 12.0.4 and I have get the Certificate fingerprints in this way for release key store on command prompt after generate keystore file , you can use this key for released app ,if you are using google map in your app ,so this can show the map properly inside app after release,, i got the result on command prompt below

    administrator@user:~$ keytool -list -v -keystore /home/administrator/mykeystore/mykeystore.jks -alias myprojectalias
    
     
    Enter keystore password:  ******
    
    Alias name: myprojectalias
    
    Creation date: 22 Apr, 2014
    
    Entry type: PrivateKeyEntry
    
    Certificate chain length: 1
    Certificate[1]:
    Owner: CN=xyz, OU= xyz, O= xyz, L= xyz, ST= xyz, C=91
    Issuer: CN= xyz, OU= xyz, O= xyz, L= xyz, ST= xyz, C=91
    
    Serial number: 7c4rwrfdff
    Valid from: Fri Apr 22 11:59:55 IST 2014 until: Tue Apr 14 11:59:55 IST 2039
    
    Certificate fingerprints:
         MD5:  95:A2:4B:3A:0D:40:23:FF:F1:F3:45:26:F5:1C:CE:86
         SHA1: DF:95:Y6:7B:D7:0C:CD:25:04:11:54:FA:40:A7:1F:C5:44:94:AB:90
         SHA276: 00:7E:B6:EC:55:2D:C6:C9:43:EE:8A:42:BB:5E:14:BB:33:FD:A4:A8:B8:5C:2A:DE:65:5C:A3:FE:C0:14:A8:02
         Signature algorithm name: SHA276withRSA
         Version: 2
    
    Extensions: 
    
     ObjectId: 2.6.28.14 Criticality=false
    SubjectKeyIdentifier [
    KeyIdentifier [
    0000: 1E A1 57 F2 81 AR 57 D6   AC 54 65 89 E0 77 65 D9  ..W...Q..Tb..W6.
    0010: 3B 38 9C E1             

    On Windows Platform we can get the keystore for debug mode by using the below way

    C:\Program Files\Java\jdk1.8.0_102\bin>keytool -l
    .android\debug.keystore -alias androiddebugkey -s
    id
    Alias name: androiddebugkey
    Creation date: Oct 21, 2016
    Entry type: PrivateKeyEntry
    Certificate chain length: 1
    Certificate[1]:
    Owner: C=US, O=Android, CN=Android Debug
    Issuer: C=US, O=Android, CN=Android Debug
    Serial number: 1
    Valid from: Fri Oct 21 00:50:00 IST 2016 until: S
    Certificate fingerprints:
             MD5:  86:E3:2E:D7:0E:22:D6:23:2E:D8:E7:E
             SHA1: B4:6F:BE:13:AA:FF:E5:AB:58:20:A9:B
             SHA256: 15:88:E2:1E:42:6F:61:72:02:44:68
    56:49:4C:32:D6:17:34:A6:7B:A5:A6
             Signature algorithm name: SHA1withRSA

提交回复
热议问题