get android release Certificate Fingerprints

后端 未结 3 1949
小鲜肉
小鲜肉 2020-12-16 05:27

I am using Android Studio on Mac El Capitan. How do I get the release Certificate Fingerprints? I need it for Firebase. I am not sure exactly how to get it.

相关标签:
3条回答
  • 2020-12-16 06:11

    Example :

    ALIAS_NAME_HERE : kakha

    KEY_FULL_PATH : C:\Users\kakha\key.jks

    keytool -exportcert -alias "ALIAS_NAME_HERE"-keystore "KEY_FULL_PATH" -list -v
    
    0 讨论(0)
  • 2020-12-16 06:14

    As this question is to get RELEASE certificate fingerprint, easy way to get RELEASE fingerprint is,

    Open terminal

    Go to directory where project's .jks file located

    Finally get it by,

    keytool -exportcert -alias ALIAS_NAME -keystore KEYSTORE_NAME_WITH_EXTENSION -list -v

    0 讨论(0)
  • 2020-12-16 06:18

    Just to test it (with the debug fingerprint), run the following command in any directory with the terminal.

    $ keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v
    

    Then copy the SHA1 value and paste it into your Firebase console.


    Be careful, the above will work for the debug environment, if you want to set up the release fingerprint you will have to create a keystore, check out this post to see how to do it, and then run the same command but instead of ~/.android/debug.keystore you should put ~/YOUR/PATH/TO/KEYSTORE

    $ keytool -exportcert -alias androiddebugkey -keystore ~/YOUR/PATH/TO/KEYSTORE -list -v
    

    Android: What is a keystore file, and what is it used for?

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