Apk sign problem


#1

Hi all, I have a problem with an apk generated by ionic that I’d like to sign for delivery on google play.

In particolar, I generated the apk after build process through ionic 3 and I obteined an unsigned apk, but, despite i tried to sign it by new key generation using keytool and jarsigner tool, alway I get the same error “jarsigner: Certificate chain not found for: Aragon. Aragon must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain”.

Could you help me to resolve this problem?

Thanks


#2

I fixed it removing .apk:
... -keystore resources/recipic.keystore platforms/android/build/outputs/apk/release/android-release-unsigned.apk recipic.apk --> recipic

This has to be you alias. To check this out run this command:
keytool -keystore resources/my.keystore -list -v and copy your alias