Skip to main content
Participant
June 23, 2011
Answered

Creating a self signed certificate - how do you set the 'storepass'

  • June 23, 2011
  • 1 reply
  • 1189 views

Hi, I'm trying to use the ADT to create an AIR 2.7 file, but it's the first time i've used the command line tool to build one and am having problems understanding the signing process.

I can generate a cert.p12 keystore file from within the flash IDE, and this asks for a password for the file (-storepass)

I can also use ADT to create a self-signed certificate from the command line, here you can specify the -keystore (cert location) and -keypass (password for the key in the store)

I cannot find a way of generating a self-signed certificate where you can specify both passwords though, one for the store (-storepass) and one for the key (-keypass).

This is a problem because when i go to package my AIR file using ADT it needs both passwords -storepass and -keypass before it can publish it.

Does anyone know how to generate a self-signed .p12 certificate and have control over both the keys...?

I have spent hours playing and searching now so may have the wrong end of the stick, could do with some help getting past this issue.

Thanks

Sean

This topic has been closed for replies.
Correct answer relaxatraja

There is only one password is required to package for ipa as far I know

Sample command:

C:\AdobeAIRSDK\bin\adt.bat -package -target ipa-test -storetype pkcs12 -keystore [KEYFILE].p12 -storepass [KEY PASSWORD] -provisioning-profile [MOBILE PROVISION FILE].mobileprovision [IPA NAME].ipa [XML FILE NAME].xml [SWF FILE NAME].swf Icon_29.png Icon_48.png Icon_57.png Icon_72.png Icon_512.png Default-Landscape.png Default-Portrait.png Default-PortraitUpsideDown.png Default-PortraitLandscapeLeft.png Default-PortraitLandscapeRight.png

1 reply

relaxatraja
relaxatrajaCorrect answer
Inspiring
June 23, 2011

There is only one password is required to package for ipa as far I know

Sample command:

C:\AdobeAIRSDK\bin\adt.bat -package -target ipa-test -storetype pkcs12 -keystore [KEYFILE].p12 -storepass [KEY PASSWORD] -provisioning-profile [MOBILE PROVISION FILE].mobileprovision [IPA NAME].ipa [XML FILE NAME].xml [SWF FILE NAME].swf Icon_29.png Icon_48.png Icon_57.png Icon_72.png Icon_512.png Default-Landscape.png Default-Portrait.png Default-PortraitUpsideDown.png Default-PortraitLandscapeLeft.png Default-PortraitLandscapeRight.png

Participant
June 23, 2011

Thankyou.

I think i must have been confused by the difference between the store (cert file) and the key within it. I just created the certificate with a key password and successfully managed to package the air app using -storepass [KEY PASS]