Home > front end >  Generate keystore from an existing pem and pk8 file
Generate keystore from an existing pem and pk8 file

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

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?

What I have tried is this ..but then what am I suppose to do? Generate keystore:

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

Thanks in anvanced..

CodePudding user response:

I think the best way to do that is:

1.Generate keystore as you did:

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

  1. Download Keystore explorer and drop your new keystore there.

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

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

  4. Upload your pk8 file and your certificate from browse. Delete the first keystore and save.

That's all!

  • Related