Hi all,

I am trying to create an AIR 2.0 native installer on Linux for an application 
I'm working on and am having some difficulties with the digital signing.

First of all, let me explain the situation because there might be a better 
solution:

I am developing the application for kiosk-style devices and control the entire 
file system of the device. The kiosk devices run Linux, my development 
environment is OS X but I have an Ubuntu VM running in VMWare Fusion.

So as a sanity check, I am trying to create a Linux native installer for the 
AIR 2.0 FileTile demo app from Adobe.

I go into my Ubuntu VM and try to create the native installer package as so:

m...@ubuntu:/mnt/hgfs/me On My Mac$ sudo ~/Desktop/AIR\ SDK\ 2.0/bin/adt 
-package -alias myalias -keystore ~/mycerts.jks -storetype jks -target native 
~/myapp.deb Downloads/filetile\ 2/src/FileTile-app.xml Downloads/filetile\ 
2/bin-debug/FileTile.swf Downloads/filetile\ 2/bin-debug/assets/logo_big.png 
Downloads/filetile\ 2/bin-debug/assets/logo.png 
password: 
unexpected failure: null
java.lang.NullPointerException
        at com.adobe.ucf.UCFSigner.setPrivateKey(UCFSigner.java:69)
        at com.adobe.ucf.UCFOutputStream.setPrivateKey(UCFOutputStream.java:176)
        at com.adobe.ucf.Packager.setPrivateKey(Packager.java:72)
        at com.adobe.air.AIRPackager.setPrivateKey(AIRPackager.java:34)
        at 
com.adobe.air.nai.NativePackager.setPrivateKey(NativePackager.java:244)
        at com.adobe.ucf.UCF.processSigningOptions(UCF.java:300)
        at com.adobe.air.ADT.processAppSigningOptions(ADT.java:311)
        at com.adobe.air.ADT.parsePackage(ADT.java:295)
        at com.adobe.air.ADT.run(ADT.java:191)
        at com.adobe.air.ADT.main(ADT.java:140)






I only found two results for the "unexpected failure" error on Google and no 
answers.

Here is how I generated my key:

keytool -genkey -alias myalias -keyalg RSA -keypass mypass -storepass mypass 
-keystore ~/intermediate.jks

keytool -export -alias myalias -storepass mypass -file ~/intermediate.cer 
-keystore ~/intermediate.jks

keytool -import -v -trustcacerts -alias myalias -file ~/intermediate.cer 
-keystore ~/mycerts.jks -keypass mypass -storepass mypass


Any ideas?

Thanks,

Chris

Reply via email to