[AIR App:Android] "Incorrect keystore password" w/ custom keystore
I'm attempting to use a custom debug keystore for running an AIR app on android device, but after being prompted (via the "Package AIR Application" dialog) for and entering the password I always receive "Incorrect keystore password."
Note, when I build with "Use temporary self-signed certificate" checked, the app deploys and runs without issue.
I create the custom keystore using:
keytool -genkey -v -dname "cn=Android Debug, o=Android, c=US" -keystore debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -validity 14000
The following command shows the password is indeed "android":
keytool -list -v -alias androiddebugkey -keystore ./debug.keystore
Enter keystore password: (<-- I enter "android")
Alias name: androiddebugkey
Creation date: Dec 23, 2013
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=Android Debug, O=Android, C=US
Issuer: CN=Android Debug, O=Android, C=US
Serial number: 52b8d92d
Valid from: Mon Dec 23 19:45:33 EST 2013 until: Mon Apr 22 20:45:33 EDT 2052
Certificate fingerprints:
MD5: 24:C4:40:3D:57:5C:B8:3D:61:C4:0B:27:BE:44:06:D4
SHA1: 77:E6:CF:63:0E:51:05:F0:E3:A4:0B:4A:A2:FD:5F:3A:BB:CB:71:0C
Signature algorithm name: SHA1withRSA
Version: 3
Any insights/suggestions would be appriciated!
Please sign in to leave a comment.
If you are going to use Java keystore file (*.keystore) you need to specify keystore type: JKS as written in Adobe's documentation. This can be done in the 'Keystore type' field on the Android tab of the corresponding build configuration in IntelliJ IDEA, see attached screenshot.
Attachment(s):
jks.png
That did it! Thanks! :)