The PhoneGap Build documentation is being moved to the main PhoneGap Docs site -- check it out!

Android Signing

Generating a private key
Submitting your key to build
Unlocking your key

Note: it is Phonegap Build's policy not to retrieve signing keys for users, for legal reasons. Hold on to them.

Generating a private key

  1. Download and install Java.

  2. Set Java_Home directory (http://docs.oracle.com/cd/E19182-01/820-7851/inst_cli_jdk_javahome_t/index.html).

  3. Open the command prompt (cmd.exe) as an Administrator, then Run the following command: $ keytool -genkey -v -keystore [keystore_name].keystore -alias [alias_name] -keyalg RSA -keysize 2048 -validity 10000

  4. Keytool will ask for keystore password. Enter password and confirm:
    Keystore Password

  5. Next, keytool will ask for additional information. Supply appropriately:
    Keystore Password 2

  6. Next, keytool will ask password for Alias. Return if it's the same as keystore password. Othewise enter password and confirm:
    Alias password

  7. Your signing key is now ready to submit:
    Submit signing key

Submitting your key to Build

Go to your Account > Edit Setting > Signing Key's tab.
Edit signing keys

Click 'add a key...', ensuring you use the same alias used when you generated your key.
Add info

Unlocking your key

Go to your Account > Edit Setting > Signing Key's tab:
Signing Keys

Click unlock button and supply the the certificate password (from step #6 above) and the keystore password (from step #4 above)
Unlocking

Lastly, either set your key to be default using the checkbox in the keys list, or in your individual application's details, select the key you've uploaded and unlocked.


More info