Home > front end >  Sign aab - from PEM and PK8
Sign aab - from PEM and PK8

Time:11-25

In an Android application I had built, I added the signature pem and pk8 of the "Apk Icon Editor" program.

The Apk Icon Editor signature folder is located in C:\Program Files(x86)\APK Icon Editor\signer, and contains 4 files inside: apk.jar, signapk.jar, certificate.pem, key.pk8

enter image description here

After August 2021, to upload an application to the Play Store, you need the file to be in .aab format and not in .apk. So I can no longer use the program I have the signatures pem and pk8.

How can I create a .keystore from the Apk Icon Editor program I have, so that I can easily do the upgrades through Android Studio?

I have tried the classics such as openssl and keytool but it does not work (I have installed -java / path / keytool etc). An example with the Apk Icon Editor folder so I can continue upgrading? Thank you in advance..

What I have tried and they do not work: How to import x509.pem pk8 file into jks-keystore?

SignAPK - PEM file AND PK8 file

Converting PEM file to PKCS8 programmatically

CodePudding user response:

The best way to do that is:

  1. Generate a new keystore:

    keytool -genkey -alias myalias -keyalg RSA -keystore keystore.jks

  2. Download "Keystore explorer" and drop your new keystore there. https://keystore-explorer.org/downloads.html

  3. Click Import Key Pair in "Keystore explorer" and click "PKCS #8" option.

  4. If you don't remember your password disable "Encrypted Private Key" option.

  5. Upload your pk8 file and your certificate from browse option. Clcik on the first keystore and delete it. Click save.

Now you have your original keystore from "Apk Icon Editor" and you can use it to Android Studio.

That's all!

  • Related