Keystore File

School Boy Error

Member
Licensed User
Longtime User
Hi, I've got to tools and Private Sign Key. I'll filled in all the fields and save a .keystore file. Now my app wont install! It will install if I go back to the debug key. I've searched for everything I can but no one has mentioned putting it in a specific directory or refering to it via the code - which I assume I need to do to get this to work?
 

School Boy Error

Member
Licensed User
Longtime User
Ok, yes I am using B4A bridge. So what is the keystore for? I understand I need it to edit this app if it were downloaded from the market so I just keep it on my computer then?
 
Upvote 0

drliew

New Member
Licensed User
Longtime User
Where did B4A store my .keystore file? Okay, I found it, without the '.keystore' extension.

I have installed a copy of B4A on my notebook which I can carry around. But it seemed that I can't sign the app in the notebook with the existing keystore file. It said the key had been tampered with. So what now?

Okay, found solution. Opened b4aV0.1.ini in the notebook and edited SignKeyFile and SignKeyPassword. Now my notebook can sign using my private key.
 
Last edited:
Upvote 0

Bobi

Member
Licensed User
Longtime User
EDIT: Solved, wrong passord. Sorry.

The keystore saves your private signing key. Only with this specific file you can sign your app again with the same key.

If you lose this file you will not be able to update your application once it was uploaded to the market. Make sure to have a backup!

Well, i have (maybe) the same problem after upgrade to the Enterprise version (i supposed): tried to sign (load existing key) an new version of existing application for uploading to the Google play but error was raised.

keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect
java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:772)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:55)
at java.security.KeyStore.load(KeyStore.java:1214)
at sun.security.tools.KeyTool.doCommands(KeyTool.java:787)
at sun.security.tools.KeyTool.run(KeyTool.java:338)
at sun.security.tools.KeyTool.main(KeyTool.java:331)
Caused by: java.security.UnrecoverableKeyException: Password verification failed
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:770)


Any suggestion?
 
Last edited:
Upvote 0
Top