1 Reply Latest reply on May 9, 2008 5:35 AM by daniel.carrera

    How do I get a valid keystore file?

    daniel.carrera
      I want to self-sign my first Adobe AIR application and I'm having trouble getting a valid keystore file. It says that it is "not an X509 code-signing certificate". I am on Mac OS X and on a terminal I tried to use openssl to make a certificate. This is what I did:

      $ openssl genrsa -des3 -out daniel.key 1024
      $ openssl req -new -key daniel.key -out daniel.csr

      At this point I didn't know how to use the CSR to get a certificate, or the PKCS12 file that Adobe AIR needs. So I signed up with a free CA (CAcert), gave them the CSR and they gave me a certificate file. I saved it as "daniel.crt". Then I ran:

      $ openssl pkcs12 -export -in daniel.crt -inkey daniel.key -out daniel.p12

      But when I tried to use daniel.p12 to package my application ADT claimed that it was "not an X509 code-signing certificate":

      $ adt -package -storetype pkcs12 -keystore daniel.p12 Foo.air Foo-app.xml Foo.html lib
      password: foo
      not an X509 code-signing certificate

      :-(
      I hope someone here can help me. I just want to be able to package a simple hello-world application. I want to self-sign it. What do I do? I'm stuck! Any help would be really appreciated.

      Daniel.