简体   繁体   中英

Converting P12 to JKS Certificate Adode AIR to Native Android Issues

I have an app in the play store which I built in Adbobe AIR and I'm now looking to upgrade it with a version built in native Android via Android Studio.

When it comes to certificate signing I have some issues... When originally exporting the APK from flashbuilder I generated a self signed certificate as a .p12 file and it asked for a password for this when you first generate the certificate and then use it each time. That worked fine...

Now when creating the new native java app Android Studio obviously requires .jks to sign with.

I have apparently successfully converted the old .p12 to jks using the keytool in java using the technique highlighted here in one of the comments: http://www.webfarmr.eu/2010/04/import-pkcs12-private-keys-into-jks-keystores-using-java-keytool/

When I attempt to Generate Signed APK for the app from Android Studio it prompts for:

  • "Key store path" - Ive got that
  • "Key store password" - got that.
  • "Key alias" - How do I find this out??
  • "Key password" - Where was this set originally??

So basically I'm stuck not knowing what the key alias and key password is because these things are never asked for when the .p12 was created in FlashBuilder originally.

Any help around how to accomplish this conversion would be appreciated.

Thanks Marco

Ok I worked this out for anyone wondering what the deal with converting p12 to jks. When I converted my old p12 certificate I used the inbfo on this page: http://www.webfarmr.eu/2010/04/import-pkcs12-private-keys-into-jks-keystores-using-java-keytool/

I used the following command(with my own file names): keytool -importkeystore -srckeystore alice.p12 -srcstoretype PKCS12 -destkeystore alice.jks .

This creates a default alias in the new keystore called "1" and the password for that actual key is the same password that was originally used in flashbuilder to create the old p12 certificate.

this is the problem when I upload my aab file

Your Android App Bundle is signed with the wrong key. Ensure that your App Bundle is signed with the correct signing key and try again. Your App Bundle is expected to be signed with the certificate with fingerprint:\\

need help

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM