I can't seem to get the SHA1 string from running the keytool command. When I am prompted for the password for my debug key I enter "android" and after hitting enter I get a string of weird characters. Please see below.
C:\Program Files\Java\jdk1.7.0_79\bin>keytool -exportcert -alias androiddebugkey
-keystore C:\Users\CaduDesktop\.android\debug.keystore
Enter keystore password:
☺☺♂♣ 071♂0 ♠♥U♦♠‼☻US1►0♫♠♥U♦
450428134123Z071♂0 ♠♥U♦♠‼☻US1►0♫♠♥U♦
☺☺☺♣ ♥é☺☼ 0é☺0é☺"0
☻é☺☺ ╡|¿t├▬╖Åδu▲dτw♦┤»Φ/ óq>ô¡╡jd♦0▐ï▬♀òy_4ƒ(|¼╒-▒ñ▄⌡Ii£ÿ◄f=╩Z¥ç▌ %É'a♂σQ¥
§¿ª∟sY↨ ■▀¢Öε═←┬-α≈π÷í¬«JÄ┌£↓àuJæ¬)⌡╔Cç┤3-ê╙♦ü¡-öæ½│↑♥]£4ß╩ó√♫êq·╛$CßÅ7%°k╗éπ→$Γ
ì¿q=cS♥|┘²'f⌐J#ò█¿∞?n→Ü♫ù►╣Åî└pÆ╝-2←/↕▌wT Bz╝♥☺#¬¿♀înOS¿═Q☻♥☺ ☺ú!0▼0↔♠♥U↔♫
♦▬♦¶╜▌qH
¿wÉqδUΦ½┴«╖ÖëèN┬╪8╪`gφ ≡«lG]8√∙█p0Yú∩j8,╠ä{╘x"┘Σq±↨═I₧ú☼Γ%Y╨⌡mΣùg☻Uù╠↔
ƒh▌"µvë#è└I►∙ä⌠ræÇ♫²║G9á ¢─↑Y╠4ε╠G╨?åcù(K{Ω$τ↨k⌂±Rí╛┼ñ♦0"☼É3Wƒ1E╦▒¶ºZ_√V¼ê âß▀Φ╗
¶╕hG±çΦ½♂~♂∟êä|┌♣εKÉĵ╨èê∙╙▬╛!Ñ
What Can I do to fix this?
Found a solution. I entered the following command
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
Related
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.
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
How do I Authenticating Your Client correctly with google?
I'm following this tutorial
https://developers.google.com/android/guides/client-auth
I copy this text into my command prompt -
keytool -exportcert -list -v \
-alias androiddebugkey -keystore %USERPROFILE%.android\debug.keystore
I get this message back "-alias is not recognized as an internal or external command, operable program or batch file."
What am doing wrong?
The copied command shouldn't contain the backslash after -v and it must be placed in one single line, like this:
keytool -exportcert -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore
Besides you have to change the %USERPROFILE% location in the command to the path where the .android directory located. (Maybe it is here: C:\User\YourUserName\ , but you have to check it if it's there)
set your cmd path to jdk then run this cmd
WINDOWS
keytool -list -v -keystore %USERPROFILE%/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
MAC/LINUX
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
I think the end goal is to generate the SHA1 key.
Best Alternative is to follow following steps:
In Android Studio, click on gradle on the right side panel.
And then navigate to app > Tasks > android > signingReport.
Double clicking it will generate the SHA1 key.
best way to get your SHAI is
keytool -list -v -keystore "C:\Users\username\ .android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
I am trying to learn Android development and I am having trouble following the Google+ sign in tutorial.https://developers.google.com/+/quickstart/android . I am stuck on step 6e-getting the SHA-1 fingerprint with the keytool.
I don't quite understand what this process is doing. In the command prompt, I have navigated to the Java/bin folder, and when I put in the command:
keytool -exportcert -alias androiddebugkey -keystore <C:/Users/Me/.android/debug.keystore> -list -v
it says access denied.
This command should work:
keytool -exportcert -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore -list -v
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