I am trying to sign my AIR OSX application using Flash Builder's 4.6 "Export Release Build" option. For this purpose I am using Apple's "Developer ID Application" certificate to be able to install and run my app on OSX 10.8 Mountain Lion.
After identifying correct certificates in the chain and exporting them all to p12 format (I chose "Developer ID Application", "Developer ID Certification Authority" and "Apple Root CA" within Keychain Access application on my Mac) I got the following error: "Error creating native installer file: Packaging failed. Make sure your computer time is in sync and your certificate is valid".
Does anybody has idea how to successfully sign AIR application using Developer ID certificates?
Yes I did. I created Apple Developer ID Application certificate on Apple's web site. I imported this to the Keychain Access by double clicking on the downloaded .cer file. I also verified I had installed Developer ID Cerification Authority and Apple Root CA certificates. Then I used codesign utility from terminal to sign all binaries inside the .app folder and the folder itself. In my case this boiled down to:
codesign -f -v -s "Developer ID Application: Company Inc" "Install My App.app/Contents/Resources/MyApp/Contents/MacOS/MyApp"
codesign -f -v -s "Developer ID Application: Company Inc" "Install MyApp.app/Contents/MacOS/Install MyApp"
codesign -f -v -s "Developer ID Application: Company Inc" "Install MyApp.app"
More information about digitally signing an AIR application are available at http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666a de46-7ff0.html#WSfffb011ac560372f284e44b012cd1e700c0-8000
Thanks,
Mallika Yelandur
Adobe Community Help & Learning
North America
Europe, Middle East and Africa
Asia Pacific