Katedral Pillon
Katedral Pillon

Reputation: 14864

get android release Certificate Fingerprints

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.

Upvotes: 9

Views: 16975

Answers (4)

leylekseven
leylekseven

Reputation: 799

as @lasec0203 said, you dont need to use alias...

Just use this code;

keytool -list -v -keystore "/fullpath/upload-keystore.jks"

and after that, enter your keystore than you will get the your certificate fingerprint.

Upvotes: 1

KAKHA13
KAKHA13

Reputation: 305

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

Upvotes: 2

Exigente05
Exigente05

Reputation: 2211

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

Upvotes: 8

Evin1_
Evin1_

Reputation: 12886

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.

Fingerprints


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?

Upvotes: 15

Related Questions