Migrate AIR Android p12 keystore file to Cordova

2019-08-02 02:53发布

At the time of our initial AIR app for Android release, we generated a .p12 keystore file using openssl, and ever since we have been signing our Android app with this file and a pw before submitting it to the Google Play Store. We build our apk thus:

java adt.jar -storetype pkcs12 -keystore {our-p12} -storepass {our-pw} ....

We are now migrating to Cordova.

We have imported our p12 into a new keystore file following the instructions here Signing apk with .p12. We use the following command to import our p12 into an empty keystore file:

keytool -importkeystore -srckeystore {our-p12} -destkeystore viacordova.keystore -srcstoretype pkcs12

However, when we try to upload our Cordova app to Google, we get the following error:

Upload failed

You uploaded an APK that is signed with a different certificate to your previous APKs. You must use the same certificate. Your existing APKs are signed with the certificate(s) with fingerprint(s):

[ SHA1: {list of bytes} ]

and the certificate(s) used to sign the APK you uploaded have fingerprint(s):

[ SHA1: {different list of bytes} ]

0条回答
登录 后发表回答