Sunday, April 14, 2013

How to get your own SHA1 fingerprint

When you first starts the Android development, you will need the SHA1 fingerprint. If this is your time you may find this a little bit hard to find out.

In the command terminal, first step is to locate the keytool.exe, which is the tool to obtain the SHA1.
Usually, the location of the file is located under JDK directory. In my case it locates at
C:\Program Files\Java\jdk1.7.0_11\jre\bin

After locating the directory, next step is to find the .android directory location which typically locates at the user directory under your name, for example, C:\Users\Bowen in my case.

Finally, type the following command to get the fingerprint:
keytool.exe -list -alias androiddebugkey -keystore "...\.android\debug.keystore" -storepass android -keypass android

The ... in the parentheses represents the directory location I mentioned above.
If you follow the above steps correctly, the system will display the Certificate fingerprint (SHA1).

Please leave a comment if you have any questions. Thx

No comments:

Post a Comment