I have one Keystore file created with the IDE since 2016 which I used for all my applications. In preparation to optin in to google app signing and to test the app bundle for NEW APP, I tried some things but it giving me error and headache.
1. The Problem
Using pepk.jar with my existing Keystore to create upload key following the instructions here
https://www.b4x.com/android/forum/threads/google-play-app-signing.91703/
java -jar pepk.jar --keystore=MY_KEYSTORE_NAME.keystore --alias=b4a --output=encrypted_private_key_path --encryptionkey=MY_KEY_FROM_GOOGLE
I end up getting a file that is NOT accepted by google (Error:
The file is not a zip file).
but when i use the code from google below with the old keystore, the zip file is Okay but I got this error T
he private key was not properly encrypted or is not a type of key we support.
java -jar pepk.jar --keystore=MY_KEYSTORE_NAME.keystore --alias=b4a --output=output.zip --include-cert --encryptionkey=MY_KEY_FROM_GOOGLE
2. What seems to work
Using keytool from openjdk 11 folder, I created a temp.keystore
Again, the pepk.jar command from b4a google app signing instruction page, created a corrupted zip file.
I switched to the command from google release dashboard using the new temp.Keystore i created with the keytool and the zip worked. The uploaded zip was also accepted and everything was succesful.
QUESTION:
Will our old keystore file be able to work to create upload key, or henceforth, we must switch to new keystore file created from keytool?