Quick tip (AIR): Updating an existing AIR app for using a new certificate

Posted on March 6, 2009

First of all thanks Adobe for sponsoring a Thawte certificate after adding ThunderBolt AS3 Console to the new Adobe Marketplace!

If you will ever certificate an existing AIR app with a new certificate, such as a Thawte certificate, you have to migrate it.


What does "migrate" mean? It's like an injection for an AIR app with all needed information about old and new certificate. You have to do it to avoid any troubles updating an existing AIR app by users. Just follow the next steps:

  • Build your AIR app as always using Flex Builder and signing it up with the new certificate ( Project -> Export Release Build )
  • Open Terminal and go to project folder typing cd {pathToYourProject}  
  • Migrate your new AIR app with the old certificate using -migrate command. Note: To run this command make sure that you have added the bin folder of Flex SDK as a PATH environment variable before.
adt -migrate -storetype {fileTypeOfOldCertificate} -keystore {pathToOldCertificate} {appJustCreated}.air {newMigratedApp}.air
  • Type password of the old certificate and that's it!
  • For updating ThunderBoltAS3 Console I did it as follow:
adt -migrate -storetype pkcs12 -keystore air_websector_certificate.p12 ThunderBoltAS3Console.air ThunderBoltAS3Console_v2.2.air

Some notes:


Any feedback?

comments powered by Disqus