We are currently switching to IntelliJ Idea but there seems to be a problem with Android Keystore files.
We have managed to successfully create the release ipa, but when trying to create the release apk, the framework doesn't seem to like our certificate type, it always prompt the error: "cert.p12: Failed to load a certificate".
I have been searching for a long while already and found this guy having the same issue (packaging a .air app).
The solution given was to change where the Java sdk folder was pointing so the framework didn't use the one that comes with it, but it looks like it doesn't work when using old .p12 files (such as ours). The last comment in the post reads the following:
We've updated bundled temporary self-signed certificate to be 2048-RSA. The fix will appear in IntelliJ IDEA 2017.2.x update release. For now, a trick with setting an older Java in [AIR SDK]/bin/jvm.comfig file works fine.
However, the trick with jvm.config doesn't work with user's custom 1024-RSA certificate and there's no way to fix it. It is not possible to enter your keystore password in the IDE dialog for such certificates. If by some reason you need to work with your own 1024-RSA certificate then you'll need either to use the ADT tool from the command line with compatible (older) Java or to configure older JDK to be used for IntelliJ IDEA itself.
At first, I wasn't sure about which type of certificate we had because it was created 5 years ago, so I looked up how to find out the certificate type with openssl and got this information:
MAC Iteration 1024
MAC verified OK
We tried setting up the module's keystore type as PKCS7 but no luck either, the error reads: "cert.p12: Keystore type is not available: PKCS7". Also, we tried editing the jvm.config's JAVA_HOME path to point to the local user's JAVA_HOME but no luck either.
I understand that indeed our .p12 is too old for this fix. Now our question is, has anyone here faced the same issue and solved it some other way? It honestly sounds weird to have to downgrade the Java version to an older one (they don't specify which version by the way).