SHA-1 fingerprint of keystore certificate

前端 未结 30 3008
长发绾君心
长发绾君心 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-21 23:59

    Using Google Play app signing feature & Google APIs integration in your app?

    1. If you are using Google Play App Signing, don't forget that release signing-certificate fingerprint needed for Google API credentials is not the regular upload signing keys (SHA-1) you obtain from your app by this method:

    1. You can obtain your release SHA-1 only from App signing page of your Google Play console as shown below:-

    If you use Google Play app signing, Google re-signs your app. Thats how your signing-certificate fingerprint is given by Google Play App Signing as shown below:

    Read more How to get Release SHA-1 (Signing-certificate fingerprint) if using 'Google Play app signing'

    0 讨论(0)
  • 2020-11-21 23:59

    keytool is a key and certificate management utility. It allows users to administer their own public/private key pairs and associated certificates for use in self-authentication (where the user authenticates himself/herself to other users/services) or data integrity and authentication services, using digital signatures.

    For Windows

    keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
    

    Other

    keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
    

    Authorization on Android uses a SHA1 fingerprint and package name to identify your app instead of a client ID and client secret.

    http://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html

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

    Run the following command to get your sha1: keytool -v -list -keystore "< debug.keystore path >"
    If you do not know the path of debug.keystore, you may find your debug.keystore path by checking windows-->preferences-->android-->build

    I prepared step by step tutorial to show how you can use google map android v2 on emulator(android 4.2.2)
    have a look at to my blog: http://umut.tekguc.info/en/content/google-android-map-v2-step-step

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

    In Gnu/Linux

    First

    You need key.jks, for example in my case this file it's in folder in /Desktop/Keys

    /Desktop/Keys/key.jks
    

    Second

    cd /usr/lib/jvm/java-1.7.0-openjdk-amd64

    Now you need excecute this command

    keytool -list -v -keystore /PATH/file.jks -alias YourAlias -storepass *** -keypass ***
    

    remplacing this fields

    -keystore
    -alias
    -storepass
    -keypass
    

    For example

     keytool -list -v -keystore /home/david/Desktop/Keys/key.jks -alias MyAlias -storepass 456 -keypass 123
    

    Good Luck!!

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

    First go to jar file copy the keytool path then add into system path then run.. i hope this one is worked..

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

    Follow this tutorial for creating SHA1 fingerprint for Google Map v2

    For Debug mode:

    keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android 
    

    for Release mode:

    keytool -list -v -keystore {keystore_name} -alias {alias_name}
    

    example:

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

    On windows, when keytool command is not found, Go to your installed JDK Directory e.g. <YourJDKPath>\Java\jdk1.8.0_231\bin\, open command line and try the above commands for debug/release mode.

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