Android Question creating pem file for google play


Licensed User

I've created android app with android studio, published 1st version to google play,
since then I've reinstalled windows and lost my keys...

now, i'm ready to upload new version of app (created with b4a), but i need to create new upload key.

from google play support I've got instructions:

Here’s how to generate and register a new upload key:
1. Follow the instructions in the Android Studio Help Center to generate a new key. It must be different from any previous keys. Alternatively, you can use the following command line to generate a new key:
keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks
· This key must be a 2048 bit RSA key and have 25-year validity.
2. Export the certificate for that key to PEM format:
keytool -export -rfc -alias upload -file upload_certificate.pem -keystore keystore.jks
3. Reply to this email and attach the upload_certificate.pem file.

Also I had created new keystore file with b4a, currently I'm using this new keystore cert with firebase.

My question is: it is possible to merge or convert somehow current b4a keystore file and generate upload_certificate.pem file?


Staff member
Licensed User
Upvote 0