-1

I currently trying to get a SHA1 certificate for android, but it results in weird characters appearing at my command prompt screen. Below is the screenshot:

enter image description here

is there something wrong at my computer's settings? Thank you.

zamroni hamim
  • 545
  • 1
  • 6
  • 21

2 Answers2

0

You were almost there!!

In case anyone gets stuck on this, I would solve this as below:

Just replace -exportcert to -list -v

 keytool -list -v -alias androiddebugkey -keystore <path-to-key-store>/debug.keystore

This is somehow related to an encoding issue with exportcert. You can read more about it here: keytool -exportcert encoding issue

General Grievance
  • 4,555
  • 31
  • 31
  • 45
nikhil024
  • 435
  • 5
  • 19
-1

Forget all the things to find SHA1 Key . The best solution for generating SHA1 key for android is from android studio. Just follow the easy steps as below.

  1. Click on Gradle on far right side.
  2. Click on refresh icon and after refresh you will see the name of the app.
  3. Click on the Tasks -> Report -> Signing Report.
  4. Find the SHA1 Key on bottom part in console.
Mr. Mad
  • 1,230
  • 1
  • 14
  • 28
  • This does not solve the OP question. The question specifically asks for generating SHA1 fingerprint from debug.keystore using command line. – nikhil024 Jun 19 '20 at 20:36