SHA-1 fingerprint of keystore certificate

前端 未结 30 3012
长发绾君心
长发绾君心 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:19

    Best way ever with all steps:

    For Release Keystore SHA1 Key:

    1. Open Command Prompt
    2. C:\Users\hiren.patel>cd..
    3. C:\Users>cd..
    4. C:\>cd "Program Files"
    5. C:\Program Files>cd Java
    6. C:\Program Files\Java>cd jdk_version_code
    7. C:\Program Files\Java\jdk_version_code>cd bin
    8. C:\Program Files\Java\jdk_version_code\bin>keytool -list -v -keystore "D:\Hiren Data\My Root Folder\My Project Folder\keystore_title.jks" -alias my_alias_name -storepass my_store_password -keypass my_key_password

    Replace below thing:

    1. jdk_version_code
    2. D:\Hiren Data\My Root Folder\My Project Folder\keystore_title.jks
    3. my_alias_name
    4. my_store_password
    5. my_key_password

    Done

    0 讨论(0)
  • 2020-11-22 00:20

    For local you get easily sha1 from android studio but for live please check below url :

    Facebook Android Generate Key Hash

    We mostly not done below steps so please check the link which is 100% correct.

    8) If you see in openssl Bin folder, you will get a file with the name of debug.txt
    

    9) Now either you can restart command prompt or work with existing command prompt

    10) get back to C drive and give the path of openssl Bin folder

    11) copy the following code and paste

    openssl sha1 -binary debug.txt > debug_sha.txt
    

    12) you will get debug_sha.txt in openssl bin folder

    13) Again copy following code and paste

    openssl base64 -in debug_sha.txt > debug_base64.txt
    

    14) you will get debug_base64.txt in openssl bin folder

    15) open debug_base64.txt file Here is your Key hash.

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2020-11-22 00:22

    If you are using eclipse, go to: Window->Preferences->Android->Build You will find what you are looking there.

    0 讨论(0)
  • 2020-11-22 00:24

    //the simplest way to get SHA1

    //add following command to your terminal and hit enter

    keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android 
    
    0 讨论(0)
  • 2020-11-22 00:25

    I had a problem during opening with command

    [keytool -list -v -keystore C:\Users\MG\Desktop\test.jks -alias test]
    

    Therefore, i download https://sourceforge.net/projects/portecle/. Then just open .jks file from the jar program. it will show you all relevant information

    0 讨论(0)
提交回复
热议问题