how i can get MD5 hash in jdk.7.o? - android

when i try to get MD5 hash by using
C:\Program Files\Java\jre7\bin>keytool -list -alias androiddebugkey -keystore "C:\Users\learnwhat.android\debug.keystore" -storepass android -keypass android
only get SHA1 hash i need MD5 hash to in goole Map api key sing up. how i can get MD5 hash in jdk1.7.0_09?.

Add -v with command if you are using jre7 for getting MD5 hash for Google Map. this command return you both MD5 and SHA1 :
C:\<YOUR_JDK_PATH\bin>keytool -v androiddebugkey -keystore "C:Users\YOUR_NAME\.android
\debug.keystore" -alias alias_name -storepass android -keypass android

using the following command:
keytool -v -list -alias androiddebugkey -keystore debug.keystore
-v will force keytool generate md5, sha1, sha256

Related

keytool -exportcert encoding issue

Regarding to this article article I'm trying to generate debug certificate.
keytool -exportcert -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore
give a follow result:
where expected is somthing like this:
Certificate fingerprint: SHA1: DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09
Hi Run this command you will get your sha-1 key.
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
Found the solution
keytool.exe -list -v -keystore "%USERPROFILE%.android\debug.keystore"
-alias androiddebugkey -storepass android -keypass android

Keystore file does not exist: /root/.android/debug.keystore for ubuntu

Need google+ sign in for my phonegap application for that I want to generate Certificate SHA-1.I run
keytool -exportcert -list -v \
-alias androiddebugkey -keystore ~/.android/debug.keystore
the command to generate Android Signing Certificate SHA-1, but it gave an error
Keystore file does not exist: /root/.android/debug.keystore
so I search for that file using find ~ -name "debug.keystore" but my search result is empty.
I also tried below command
keytool -genkey -alias myKey -keystore store.jks
keytool -selfcert -alias myKey -keystore store.jks
but i didn't found Android Signing Certificate SHA-1
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
Try this command. Your debug keystore is always present in /home/<username>/.android and ~ is just a shorthand for /home/<username>.
If your SDK is installed properly, there should be no issues in running that command. Otherwise, we'll need some more information to find and fix the issue.
If PhoneGap/Meteor has its own set of android bundles, you might want to try something on these lines
keytool -list -v -keystore ~/.meteor/android_bundle/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
You don't have to use the debug certificate, just create a new certificate by following this tutorial and use it to sign your debug and release versions of the app.

keytool Error for Map API Key

How to publish the Apk file with signed key for Map,
Am Getting Error as Follows in CMD
C:\Program Files\Java\jdk1.7.0_21\jre\bin>keytool -list -v -keystore D:\Shankar
Completed Project\Mandate Project\keystore -alias mandatehandbook
Illegal option: Completed
keytool -list [OPTION]...
Lists entries in a keystore
Options:
Use "keytool -help" for all available commands
Put quotes around the keystore path. Your shell is confused by the space in the pathname.
keytool -list -v -keystore "D:\Shankar Completed Project\Mandate Project\keystore" -alias mandatehandbook
debug keytool example:
keytool -list -v -keystore "D:\Users\%your name%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

Android google map apiv2 authorization failure

I have generate keystore using two type of command as follow
keytool -genkey -v -keystore mykestorename.jks -alias aliasname & keytool -selfcert -alias aliasname -keystore mykestorename.jks
keytool -genkey -v -keystore mykestorename.keystore -alias aliasname -keyalg RSA -keysize 2048 -validity 1000000
and I generate sha1 key using following command
keytool -list -V -alias alias name -keystore "keystore path"
I create API key in Google console the generated key passes Authorization failure error
and showing grey color plain background in map fragment

google map key (SHA1) certificate

I am using following command to generate MD5 cetificate. But i am getting SHA1 certificate. Which is giving invalid finger print while generating certificate. Where I am doing mistake.
keytool -list -alias androiddebugkey -keystore ./.android/debug.keystore
Try this.
I was having same issue few days before.If you use JDK 1.7 then it will generate SHA1 instead of MD5 fingerprint.To generate MD5 fingerprint in JDK 1.7 use (-v) option of the keytool.
for example : keytool -v -list -keystore [your keystore path]
Try this it will show MD5 also
keytool -v -list -alias androiddebugkey -keystore ./.android/debug.keystore
added -v between keytool and -list.

Categories

Resources