Android: How to get MD5 from debug.keystore file?

anoop m
1 min readDec 28, 2018

--

I had a requirement in my project to get the MD5 from the debug keystore. Below is what I did

  1. Navigate to ` ~/.android/ ` in MAC
  2. Hit the below command in terminal :-

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

Below is what you get

Valid from: Sat Dec 01 18:26:30 CET 2018 until: Mon Nov 23 18:26:30 CET 2048
Certificate fingerprints:
SHA1: …….
SHA256: ……..
Signature algorithm name: SHA1withRSA
Subject Public Key Algorithm: 1024-bit RSA key
Version: 1

You can see that MD5 is missing here, to get it we can use Android Studio

  1. Go to Gradle as shown in the below figure and double click on `signingReport`
  1. Go to the Console area and you can see the MD5 (I have masked mine in the image). This tested with Android Studio 3.2

--

--

No responses yet