3

Gone through Official Documentation: Authenticating Your Client

But still, either terminal was not able to find keytool or command doesn't work?

Aakash Solanki
  • 565
  • 1
  • 6
  • 18

4 Answers4

12

Following will give you SHA1, SHA256, MD5 for default debug key. And it can be used for developing and debugging with google play services.

Linux & Mac command

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

Windows

keytool -exportcert -keystore C:\Users\<USERNAME>\.android\debug.keystore -list -v

Replace with your windows account name example:

keytool -exportcert -keystore C:\Users\Aakash\.android\debug.keystore -list -v

If asked password, type: android

Aakash Solanki
  • 565
  • 1
  • 6
  • 18
0

Follow: The follow the article for more https://codewithandrea.com/articles/keytool-command-not-found-how-to-fix-windows-macos/

Aakash Solanki
  • 565
  • 1
  • 6
  • 18
0
 keytool -list -v -alias androiddebugkey -keystore C:\Users\USERNAME>\.android\debug.keystore
Aakash Solanki
  • 565
  • 1
  • 6
  • 18
  • 1
    While this code may provide a solution to the question, it's better to add context as to why/how it works. This can help future users learn and eventually apply that knowledge to their own code. You are also likely to have positive-feedback/upvotes from users, when the code is explained. – Amit Verma Feb 18 '21 at 04:52
0
keytool -list -v -keystore ~/.android/debug.keystore
Aakash Solanki
  • 565
  • 1
  • 6
  • 18
  • 2
    While this code may provide a solution to the question, it's better to add context as to why/how it works. This can help future users learn and eventually apply that knowledge to their own code. You are also likely to have positive-feedback/upvotes from users, when the code is explained. – Amit Verma Feb 18 '21 at 05:08