Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Sign android app with private_key.pepk

I have an app in Google Play now I need to publish new version 2 of this app.

how can I Sign android app with private_key.pepk ?

I lost Java keystore (.jks or .keystore) I only have private_key.pepk

like image 726
Mohammed Alotaibi Avatar asked Nov 06 '22 06:11

Mohammed Alotaibi


People also ask

How do I sign an APK file in Android Studio?

Select the App signing tab. Click Show advanced options, and select Use a new app signing key (this requires ongoing dual releases). Choose to use the same app signing key as another app in your developer account, or to upload a new app signing key from Android Studio, Java KeyStore, or another repository.

How do I change my signing key certificate app?

If you've enabled Manage Signing Key by Google then your signing key will be managed by Google and you can add an additional Upload Key which you can change/update if necessary. Google recommends this procedure and this procedure is available for new apps and already published apps.

What is the use of PEPK file?

pepk (Play Encrypt Private Key) is a tool for exporting private keys from a Java Keystore and encrypting them for transfer to Google Play as part of enrolling in App Signing by Google Play.


1 Answers

The file private_key.pepk is your private key encrypted with a key that only Google can decrypt. It is used only for transferring the key to Google when you enroll in Play Signing.

So you can't extract the private key from this file, but you can enroll in App Signing by Play by providing this file to Google and they'll be able to sign your app on your behalf. You will need to set a different upload key as well (you'll be prompted at the end of the enrollment) so you can sign the APKs or App Bundles you upload to Play with a new keystore you will have created.

like image 71
Pierre Avatar answered Nov 14 '22 21:11

Pierre