How to export Android "Encrypted App Signing Private Key" from Unity Keystore?

Hi all,

I’m looking for some help getting an old Google Play project live again after making some updates. The app was last updated 2017, but since then Google Play have introduced the App Signing feature, and I’m stuck.

This is an existing application, so Google have not generated an app signing key for me (if I setup a brand new Google Play Application they do generate the app signing key, and I can work with Unity keystore as my upload key).

Please see attached screenshot for the options I have in Google Play:

My question:

How to export Android “Encrypted App Signing Private Key” requested by Google Play? (I believe this needs to be in a .pepk format)

  1. Am I missing some obvious way to get this from the existing Unity Keystore?

This comment from @Yury-Habets suggests it is possible, but I’m not sure how:
https://forum.unity.com/threads/android-app-signing-by-google.471539/#post-4618906

Possible useful background?

  • I’m running Unity 2018.4, and building directly in Unity (ie not exporting to Android Studio)
  • I’m using the Unity keystore to sign the app, and have access to the original keystore/creds

I’ve reviewed a few related threads on here which didn’t get me a working solution.

Thanks in advance! :slight_smile:

Duplicate of :

https://answers.unity.com/questions/1622568/exporting-a-pem-file-from-unity-keystore.html

and

https://answers.unity.com/questions/1650800/keystore-to-pem-file.html

The whole keystore thing is not a Unity thing at all. The KeyTool.exe that comes with the JDK is shipped with Unity but any version should work. You can find it somewhere inside the Unity installation folder. For example when using the Unity hub and version 2019.1.10f1 it would be here on windows:

C:\Program Files\Unity\Hub\Editor\2019.1.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\OpenJDK\Windows\bin\KeyTool.exe

Though the easiest solution would probably be the software mentioned in the answer by Marcio Jasinski: portecle

Thanks @Bunny83 ! Knowing that the Keystore is not unique to Unity is the key bit of info I missed in my searching. I should be fine from here.