keystore to PEM file
I am trying to upload a new version of a game I built with Unity, to Google Play. The old key password has been lost so I need to use a new signing key. I have contacted Google about this and they can only reset my signature if I send them a new PEM file.
I have tried several methods of getting from the Keystore file to a PEM with no success. The last attempt I submitted to Google Play was rejected for being too weak. I have also look into using Android Studio with no success. (the online information on doing this seems to be out of date)
How can I generate a '.pem' file from the '.keystore' file?
Answer by bod · Jul 24, 2019 at 04:03 PM
I was able to solve this issue by using an open source application called KeyStore Explorer: https://keystore-explorer.org/
The app lets you open the '.ketstore' file generated via Unity. You can then manage the keys and export a PEM certificate.
Note that the Unity default key pair is only 1024 bit. You need to create a new key pair at 2048 bit for Google Play when updating your public key.
Note that this solution does not require Command Line coding.
i just open my keystore in keystore explorer and export a pem file and uploaded to play store but play store again rejected.any help?
It has to be a 2048 bit key The default for Unity is 1024 bit... I had to create a new 2048 bit key pair with keystore explorer. Hope that helps...
I am uploading android app bundle for my existing app on play store. when i uploaded the android app bundle file, play store says it has to be signed by Google and give me three options. 1.export the key from android studio 2.export the key from the java keystore. i go for 2nd and download the pepk file and generate the .pem file using the fu* command prompt. but when i upload it to play store, I get the error. so which file should be in 2048 bit, $$anonymous$$eystore or .pem file.? i am talking about existing app not new apps.Really need help
Just to let you know: keystores generated through Unity 2020 with default settings seems to have a 2048bit RSA key and 50 years of validity, so it should be ok for the PE$$anonymous$$ file
Answer by Bunny83 · Jul 23, 2019 at 02:16 AM
Not a Unity related question. The keystore is part of java / android. 10 seconds google search gave me this:
Answer by aumentarte · Nov 25, 2019 at 11:57 AM
Thanks a lot. This did work for me. Just generate the new key store file, open it with KeyStore explorer, double click on it once you have it in the program window and click export. I generated the keystore file with unity 2019.2.6f1 and it was already 2048 bit RSA key. I didn't have to create a new key par.