google map key (SHA1) certificate - android

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.

Related

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.

get android release Certificate Fingerprints

I am using Android Studio on Mac El Capitan. How do I get the release Certificate Fingerprints? I need it for Firebase. I am not sure exactly how to get it.
Just to test it (with the debug fingerprint), run the following command in any directory with the terminal.
$ keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v
Then copy the SHA1 value and paste it into your Firebase console.
Be careful, the above will work for the debug environment, if you want to set up the release fingerprint you will have to create a keystore, check out this post to see how to do it, and then run the same command but instead of ~/.android/debug.keystore you should put ~/YOUR/PATH/TO/KEYSTORE
$ keytool -exportcert -alias androiddebugkey -keystore ~/YOUR/PATH/TO/KEYSTORE -list -v
Android: What is a keystore file, and what is it used for?
As this question is to get RELEASE certificate fingerprint, easy way to get RELEASE fingerprint is,
Open terminal
Go to directory where project's .jks file located
Finally get it by,
keytool -exportcert -alias ALIAS_NAME -keystore KEYSTORE_NAME_WITH_EXTENSION -list -v
Example :
ALIAS_NAME_HERE : kakha
KEY_FULL_PATH : C:\Users\kakha\key.jks
keytool -exportcert -alias "ALIAS_NAME_HERE"-keystore "KEY_FULL_PATH" -list -v
as #lasec0203 said, you dont need to use alias...
Just use this code;
keytool -list -v -keystore "/fullpath/upload-keystore.jks"
and after that, enter your keystore than you will get the your certificate fingerprint.

What is production keystore in android and how can I get the path-to-production-keystore?

I am trying to add google authentication feature in my android app and for that I need to get the Android Signing certificate SHA-1. The official tutorial says to use the below command to get the SHA-1 hash value .
In release mode
keytool -exportcert -list -v \-alias <your-key-name> -keystore <path-to-production-keystore>
debug mode
keytool -exportcert -list -v \-alias androiddebugkey -keystore ~/.android/debug.keystore
Now I am confused with what is this production-keystore and debug.keystore and how to get the path to production-keystore? Explanations are appreciated.
Please use below command for linux, if you don't have keystore file:
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
Production keystore will generate when you are creating signed APK file.
Refer below link for information:
http://developer.android.com/tools/publishing/app-signing.html
Stumble upon this but I was using Windows. I got my answer hoping to help other Windows user who came to this post.
keytool -list -v -alias androiddebugkey -keystore C:\Users\<name>\.android\debug.keystore

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

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

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

Categories

Resources