Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lost keystore alias but have file and password used for alias

recently I added a new alias to my keystore to sign my app.

Now I lost the new generated file with the alias, but remember the password and the alias name and have an older copy the file. Is there a way to recreate the alias using this things?

like image 334
waronin3D Avatar asked Nov 21 '13 11:11

waronin3D


People also ask

How do I find my alias keystore password?

On the search box top right, type your Android app name or part of the app name. You will see the result line, if you had saved the password. Double click on it, check the show password checkbox, give your system password when asked, and it will show your keystore password.

What do I do if I lost my keystore?

Go to this LINK https://support.google.com/googleplay/android-developer/contact/key?hl=en And fill the application form with your valid Email ID and upload the file (upload_cert. der). Now you will get the Email from support team, and they don't need your .

How one can recover a Java keystore if the keystore password is forgotten?

Resolution. The only way to recover is then to create a duplicate keystore with a new store password. All of the certs from the original trustore can be copied as-is into the new keystore. We will use /opt/CA/jre/lib/security/cacerts as the example but this will work with any Java Keystore (jks).

Is keystore password and key password the same?

The -keypass option is used for "the password for the key" and the -storepass option is used for "a password for the keystore". Keypass is a password used to protect the private key of the generated key pair (except for RACF keystores). If password is not provided, the user is prompted for it.


2 Answers

You can list the contents of your keystore with the command:

keytool -list -keystore <name of keystore file> 

To do this, you will need to provide the keystore password (not the alias password). This will tell you the aliases in the file, which are self-contained, allowing you to sign. If you wish, you could also extract keys using other options / tools.

like image 120
mah Avatar answered Oct 14 '22 05:10

mah


Open your key store (.jks) file with text editor. It will display binary form of data. The readable text in the first line is your key alias.

For example, your key alias in the following binary data is the key alias.

þíþí your key alias UYY_ 0‚þ0 +* ‚êa÷í–ØRö}ðžá䶈ùÎL\ô©2‘wå¥H¨V †¸®Àµ£ð×þ7—â;TÁÙcsª”ž˜4ÝÉ'AÀì,’„×S¼ðßÅ'€Õ¡ó‚˜ ö!y’Çåx|(woÁh4u-û†‚‡§Qȸ|ˆ³”ÜæûZŽ²a±O­´¢^À.ªbÅ“e†6 É秮j§˜y ößÿØ0Çd@ /Ã?®¦ìé¼/§Zq””Ê•©„=~Ùì¢>º}DàO<Ö¹SbpÎŒ@Ø„°^Í^e»>¾ü«nM( "Nbûh·2ðÁ0¯ç¿61êè“[.ÇzeYŽºXkuÄy*ôq¥FSs]:2“ì

like image 42
Nagaraju Gajula Avatar answered Oct 14 '22 04:10

Nagaraju Gajula