Skip to content

Instantly share code, notes, and snippets.

@wei-lee
Created December 8, 2014 12:45
Show Gist options
  • Save wei-lee/b1fed7a52e0baf0982e9 to your computer and use it in GitHub Desktop.
Save wei-lee/b1fed7a52e0baf0982e9 to your computer and use it in GitHub Desktop.
Generate signing credentials for Android release
# Step 1: Generate the keystore file.
# If a keystore file already exists, skip this.
keytool -genkey -v -keystore my-release-key.keystore -alias dev -keyalg RSA -keysize 2048 -validity 10000
# Need to remember the password for the keystore file
# Step 2: convert the keystore file to PKCS12 format
keytool -importkeystore -srckeystore ./my-release-key.keystore -destkeystore newkeystore.p12 -deststoretype PKCS12 -srcalias dev
# Step 3: Upload the .p12 file as both the private key file and certificate file to the AppStudio as 1 credential bundle
# Step 4: Enter the password for both cert and private key when building the app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment