Issue
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
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
Solution
The best way to do that is:
Generate a new keystore:
keytool -genkey -alias myalias -keyalg RSA -keystore keystore.jks
Download "Keystore explorer" and drop your new keystore there. https://keystore-explorer.org/downloads.html
Click Import Key Pair in "Keystore explorer" and click "PKCS #8" option.
If you don't remember your password disable "Encrypted Private Key" option.
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!
Answered By - ric12g
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.