Getting MD5 certificate on mac - android

someone can tell me why this command
keytool -list -alias androiddebugkey -keystore ~/Desktop/release-1.keystore -storepass android -keypass android
fail with error
keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect.
Where am i mistaken.. please give me an example where i can get MD5 code on mac os.

Try the password as android itself. Maybe it will work. Actually that works for me and i think its the default password for keystore.

Related

Android Cannot recover key

I'm having an error recovering my key in Android Studio.
I know the key alias and I have the correct password for both.
I know this because I am able to run: keytool -list -v -keystore mykeystore.jks -alias myKey -storepass myPass -keypass myPass
in cmd and get my certs.
My storepass and keypass are the same and I copied and pasted all of the values from cmd to android studio, but I still get this error.
I've also tried restarting android studio and manually retyping my passwords and alias multiple times to no avail.

Android: Released vs Debug Fingerprint (Sha1)

I was trying to obtain my Sha1 fingerprint for release and debug. Fortunately, I was able to obtain the debug version code through
keytool -list -alias androiddebugkey -keystore C:\Users\Name.android\debug.keystore -storepass android -keypass android
I was wondering how I would get the release? I tried
keytool -list -alias androidreleasekey -keystore C:\Users\Name.android\debug.keystore -storepass android -keypass android
but unfortunately it came out as keytool error: java.lang.Exception: Alias <androidreleasekey> does not exist.
*Actually my result may have been my released key store since I already built it as released app... I'm not entirely sure though.
You need to find the location of the release keystore file and the name of the alias that you used to build your app.
To do this in Android Studio select Build > Generate Signed APK. You should see a dialog similar to below.
Get the location of the full file path for the release keystore from the Key store path. Then use this path along with the Key alias that is listed to get the SHA1 as you tried previously:
keytool -list -alias myappsalias -keystore
C:\users\dell-laptop\AndroidStudioProjects\myapp\myapp_release.keystore -storepass android -keypass android

API Generation error

I am trying to generate an android key for API access. The problem is that I can't. When following the standard pattern for SHA-1 fingerprint generation from the command prompt this error pops up simultaneously ... Any ideas on what this might be ??? I did read other posts but was not of much help.
keytool error: java.io.IOException: Invalid keystore format
java.io.IOException: Invalid keystore format
I did what had to be done, pointed the path to the JDK bin file where both the key tool and the jarsigner are .... and also followed the standard command line
keytool -exportcert -alias androiddebugkey -keystore {path-to-debug-or-production-keystore} -list -v
also
keytool -list -v -alias androiddebugkey -keystore <path_to_debug_keystore>debug.keystore -storepass android -keypass android
I think your, problem is here
keytool -v -list -keystore C:\Users\username\.android\debug.keystore
You have to give your keystore.exe location dont use dirtectly {path-to-debug-or-production-keystore}

unable to get valid api key

I'm getting this error when I try to get an API key:
The fingerprint that you entered is not valid
Please press the Back button on your browser and enter a valid certificate fingerprint.
If you're using debug key use the following command on Windows
C:\Program Files\Java\jdk1.7.0\bin\keytool -list -alias androiddebugkey -keystore C:\Users\username\.android\debug.keystore -storepass android -keypass android
Make sure you get the MD5 fingerprint, not SHA1. If you're using Java 7 the keytool gives the SHA1 fingerprint. To get the MD5 use the -v flag in your keytool command

Googlemaps API: problems getting my key

i am doing a debug key and i can't. Im stuck here:
"Once you have located the keystore, use this Keytool command to get the MD5 fingerprint of the debug certificate:
$ keytool -list -alias androiddebugkey \
-keystore .keystore \
-storepass android -keypass android"
i located my keystore, but i dont know how to put that order.... i think that order is for linux, and i am using windows XP Professional
can someone help me plz?
Get rid of the backslashes. Those, in Linux and OS X, denote line continuations.
So, in Windows, if you are in the directory containing your debug keystore, you should be able to run:
keytool -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android

Categories

Resources