Adobe AIR project: .p12 & password

Answered

Switching from FlashBuilder to IntelliJ, I'm trying to package an apk from an AIR project in IntelliJ.

I'm using the same .p12 as I used in FlashBuilder. I add it via Project Settings > Modules > [My Android Module] > Android > Keystore file
I leave Keystore type default value: PKCS12.

Then I go to Build > Package AIR application > Package > Keystore password
(the path to the Keystore file is displayed properly)

I get the message: "Incorrect keystore password".

Is there a reason why the p12 + password would work with FlashBuilder and not with IntelliJ?

0
11 comments

Do you have empty password string? Note that such error will be reported by IDEA if the password is empty: https://youtrack.jetbrains.com/issue/IDEA-125867 .
If the problem is different, could you please clarify: does the command from command line work? Can you attach sample project to check?

If to have sample project is not possible, please attach a screenshot showing where do you set the password and the complete textual output from Run.Debug session with the error.

0
Avatar
Permanently deleted user

No, I'm not in the case of a blank password.

Here is a screenshot of the context where it happens:

It also happens when I launch Debug, but then nothing more happens and I don't seem to get any related output...? All I can do is close the password box, and I get no other error message whatsoever.

If it can help, here is a screenshot of the output by the certutil command applied to the p12 file:

Please note that the process above required the p12 password, and it worked.

I did this following a colleague's guidance. He thinks there might be some sort of incompatibility between SHA1 & Java 8...?

Coming from FlashBuilder, I'm not familiar with command lines. Please let me know which command line I should type to generate a relevant output.

I could send you a sample project, but really, the problem seems to lie within the p12. Would you need the p12 file plus password?

Thank you very much for your help.

0

Thank you for the information.

>I did this following a colleague's guidance. He thinks there might be some sort of incompatibility between SHA1 & Java 8...?

Please see https://youtrack.jetbrains.com/issue/IDEA-176227 - Java 8u121 and later drop support for 1024 bit RSA certificate and 2048 bit certificate would be needed.

0

Thank you for your help.

I have tested with a new, compliant certificate, and it works.

Do you think there's a way I could downgrade to a former Java version in order to make the initial certificate work?

"Java 8 is required to run IntelliJ IDEA", so I think the answer might be just "no"?

This is really, really annoying that I cannot use the same certificate as before to sign the apk...

0

OK I finally managed to compile with the old certificate.

I downgraded IntelliJ to the latest version compatible with 1024, using the Choose Runtime plug-in.

0

Can you please direct me to the link in which I can downgrade IntelliJ? I'm also stuck with this problem. Thanks!

0

Once I clicked install, It crashed my InteliiJ unfortunately and now I cannot start it, thanks anyway Denis

0

If you can't start the IDE to access this dialog or the runtime doesn't change. You would need to remove the <product>.jdk file from the configuration directory and unset any environment variables that override the default runtime. If there is no jbrsubdirectory in the IDE installation directory, reinstall the product.

0

Sorry about that Mikthailand :(

Are you on a Mac? It worked for me on a Windows PC, but I think a colleague on Mac couldn't achieve the process either.

1

Thanks for the help, I ended up putting the the 1024 in a keystore I created, uploading it to Google Play to activate their signing, then asking them to reset the upload key with a new 2048 I will generate.
So far they didn't answer but it should work.
I think it's a good approach since it upgrades the key and google signing is on.
Thanks!

0

Please sign in to leave a comment.