Packaging Air Application certificate problem: id.p12: failed to load a certificate
Hello Forum users,
I cannot package our air application to an APK file. This is what i do:
1. I open the build menu.
2. I click the Package AIR application button
3. I select the build configuration from the list that i want an apk from
4. I click the Package button
5. I enter the Keystore password after i verified it is correct
6. I click OK
Then i get the error message "id.p12: Failed to load a certificate"
A couple of version back it just worked and now it doesn't. How can i troubleshoot this problem?
I use IntelliJ IDEA Ultimate 2017.2 that uses JRE 1.8.0_152-release-915-b5 x86_64 and JVM OpenJDK 64-Bit Server VM by JetBrains s.r.o. And i use the AIR SDK version 23.0.0.257. The operating system i use is MacOS Sierra version 10.12.5 (16F73).
I tried placing the certificate directly on the root of my mac to avoid spaces in the path to the certificate to see if it then did load but that also does not work.
Please sign in to leave a comment.
Your post is a diplicate of https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000471830-Failed-to-package-AIR-application-dev-32-S-air-unable-to-load-a-certificate-in-this-file.
Hello Serge, Thanks for your quick reply. Tried all the solutions like stated in that topic you referred to but had no luck in solving the problem.
What a also notice right now is that when i run my app it does compile successfully. But then i get this Error: AIR descriptor /Users/thejay/develop/codebases/cert/id.p12 has incorrect content: Error on line 1: Content is not allowed in prolog
When i do my research on internet, people are talking about xml files. the p12 file isn't one.
Hello Serge,
Well i solved it. This is a case of getting "blind" because i was focussing to hard. The message tells that the AIR descriptor os wrong. This should not be a p12 certificate file but an xml file! Such as defined here: http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff1.html
Thanks for your quick respond. Have a nice day.