Digitally Sign Adobe AIR Applications
Code Signing on Adobe AIR
Applications that are not digitally signed cannot be run on Adobe AIR. Implementing a DigiCert code signing certificate will allow your users to run applications that you create or modify.
Before you can sign your code for AIR, you will want to export your code signing cert to a .pfx file (a certificate and private key file combined into one) if you do not have it in that format already. Most DigiCert users will not automatically have their certificate as a .pfx if they used one of certificate creation or installation tools, and the certificate was installed directly through the web browser.
If you have a .pfx file already, skip to step 3.
-
If you used Internet Explorer - Internet Explorer will automatically place the new code signing certificate into the Windows store. To export from the certificate store, just go to Start > Run > MMC, then File > Add/Remove Snap In > Certificates > Add > My user account > Finish, then OK. Then browse to Certificates > Personal > Certificates, and you should see a list of all personal certificates installed for your user. Right click your code signing certificate, go to "All Tasks" then Export.
Following the wizard to export your certificate as a PFX should be straightforward. If you do not have the option to export the private key, you will need to request a new certificate, as your PFX file will need to include the private key. Make sure not to forget the password that you select during this process.
-
If you used Mozilla Firefox - Open Firefox, then go to Tools > Options > Advanced > then click the Encryption tab, and then View Certificates. You should see your certificate listed under Your Certificates. Click your certificate and choose to Backup.
When saving your file and choosing a password, remember that this password will be required when using the certificate to actually sign your code. If you forget your password, you will need to re-export your certificate.
- Open the command line prompt and navigate to the source directory of your application, where the application.xml file is located (you will want to make sure the .pfx file used for signing is not located in the source directory).
-
Now run the following command at the command line:
adt -package -storetype pkcs12 -keystore [c:path\to\your\certificate.pfx] [c:\path\to\your\file.air] application.xmlYou will be asked to enter the password associated with the .pfx that you created earlier. Enter that when prompted.
- Congratulations! You just successfully signed your Adobe AIR application.
© 2003-2012 DigiCert® Inc • SSL Certificate Authority • All Rights Reserved
All trademarks displayed on this web site are the exclusive property of the respective holders.



