androidcertificatekeysignrecreate

How to recreate the keystore file if it got deleted accidentally


I have an app which is signed and several keystore files. I'd like to update the app, so I need to find out which one of keys was used.

enter image description here

I have recovered it but I want to generate the keystore file again.

I know the user name & password also.


Simply my question is :

How to convert .RSA file to .JKS

Please Help


Solution

  • if you lost your keystore then it is gone forever, you can't do anything with that...

    if you have your keystore (and log/pass, if not you may try bruteforce) then you can try sign your apk with every key and check fingerprint matches version from Google Play (you can "extract" APK installed on device). note that there is also possiblity of multi-signing APK, but Google Play allows only single one, so it's not for you...

    Having only RSA signature (extracted from prev signed APK?) is not sufficient at all, it is only "public" part of keystore, which may be extracted by everyone. you need "private" part, which is stored in your keystore only.

    keytool is tool for playing with keystores - generating keys, signing files, recovering "public" key etc. but in your case it will be useless probably. Just find this damn keystore... Good luck!