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
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 using macbook
I typed below code on terminal
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore
and end up with
0???|???*?H??
071
0 UUS10U
450329083337Z071
0 UUS10U
?0?roid ?H??0?"0
??&{??#u???_??R??M?C? ?ߔ?"??V?L??????X=y???P9,????gq?v-b|?x??W5WR?r???
?c+W??NWS!P??????ʈl??SO?̡E??]???wO???OhMⳳӾ?៎m???et???A?K?8 ]?#??,?l??'N8??WZ?x폻(??҄-y??J??H??]???mD,???>?3?Ð?=ߌh??ib???????p6\??????!00U????W? ?p8+??P?b??0
?rGNh?o(5*?<????x????b??7;1?ƻ?H?L1?>?O~&?O??E??Ӎ?5c?62?? ~?????ܙKv=?E???U?d?.?̶?}?U??ѭ?Q0????G??Jʀ?֯r?????
=g?P??n??s?S?3?\o????kO?_u???9??iv?????5A҈?)9?-??nO?~#Pq?x ???
???-?b(???\?P?xd?Ԩ?#8z8b>SG?z?f??????%?
What is the issue?
I have missed last two word -list -v
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v
its working now
Sometimes it might be handy to use an existing keystore in eclipse (Android -> Build -> CustomKeystore) to build from within eclipse.
The Eclipse plugin does not allow to change the keystore password, key-alias and key password though.
Is there a way to convert an existing keystore to match the default requirements?
The following keytool commands should do the trick. There definitly is a simpler way, but it already took enough time figuring this one out :)
keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -keyalg RSA -keysize 2048 -validity 10000
keytool -delete -alias androiddebugkey -keystore debug.keystore
keytool -importkeystore -srckeystore src.keystore -destkeystore debug.keystore
keytool -changealias -alias srcalias -destalias androiddebugkey -keystore debug.keystore
keytool -keypasswd -alias androiddebugkey -keystore debug.keystore
This creates a new keystore and imports an existing key from a source keystore
keystore. src.keystore -> your source keystore that will be used
srcalias -> your source alias you're currently using
passwords are entered on cmdline
use 'keytool -list -keystore debug.keystore' to check the result.
Very useful information, should be voted up. I wrote a small batch file basing on Icyerasor's answer:
keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -keyalg RSA -keysize 2048 -validity 10000 -storepass android -keypass android -dname "CN=kristjan sander, OU=Unknown, O=bitspinners, L=tallinn, ST=Unknown, C=ee"
keytool -delete -alias androiddebugkey -keystore debug.keystore -storepass android
keytool -importkeystore -srckeystore keystore.jsk -srcstorepass qwerty -destkeystore debug.keystore -storepass android
keytool -changealias -alias bitspinners.eu -destalias androiddebugkey -keystore debug.keystore -storepass android -keypass qwerty
keytool -keypasswd -alias androiddebugkey -keystore debug.keystore -storepass android -keypass qwerty -new android
keytool -list -keystore debug.keystore -storepass android
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
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