Quick tip (AIR): Signing an ANE (ActionScript Native Extension)
Posted on October 20, 2011
If you package an Native Extensions for latest Adobe AIR 3.0 you will have an option for signing it with a certificate as well.
The packaging process of creating ANE (ActionScript Native Extension) files is already well documented (check "Packaging a native extension" at Adobes AIR documentation). However, it's not easy to find a detailed instruction for signing an ANE file. Maybe because it is optionally... Here are few tips:
- Signing an .ane file is almost the same thing as signing an .air file. So you can use an own self-signed certificate or an obtained certificate
- Because the current Flash Builder (v.4.5) does not support packaging and signing ANE files, you have to use the command line tool ADT.
Here is an example of packaging an ANE for using it on the iPhone (without signing):
adt -package -target ane MyExtension.ane extension-descriptor.xml -swc MyExtension.swc -platform iPhone-ARM library.swf MyExtension.a -platform default library.swf. More information about all command line options you will find here: "ADT example for packaging an extension".
- To sign an ANE file just add the needed signing options to the command line options after -package and before -target. You will find all available signing options here.
An example of packaging and signing an ANE for using it on the iPhone looks like:
adt -package -storetype pkcs12 -keystore my_certificate.p12 -keypass my_password -target ane MyExtension.ane extension-descriptor.xml -swc MyExtension.swc -platform iPhone-ARM library.swf MyExtension.a -platform default library.swf
- Adobe AIR documentation: "Developing Native Extensions for Adobe AIR"
- Adobe AIR documentation: "Signing AIR applications"
- Adobe ADC - Daniel Koestler: "Developing native extensions for Adobe AIR" -> Chapter "Packaging a native extension"
- Adobe: "Developing ACTIONSCRIPT® Extensions for ADOBE® AIR®" (PDF) -> Chapter "Packaging a native extension for AIR for TV devices"