Create keystore file with one command : <p>I have a script which creates and signs a keystore file for an android app.</p>

<p>It is working perfectly fine but i would rather have it run without human intervention</p>

<p>what i have to create the keystore: </p>

<pre><code>keytool -genkey -v -keystore my-release-key.keystore
-alias alias_name -keyalg RSA -keysize 2048 -validity 10000
</code></pre>

<p>This then prompts me to enter the following values manually using the terminal: keystore password, full name , organisation unit, organisation name, city , state, county code,  key password.</p>

<p>what i have to sign the app:</p>

<pre><code>jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1
-keystore my-release-key.keystore my_application.apk alias_name
</code></pre>

<p>This then prompts me to enter passphrase for keystore.</p>

<p>Is there anyway i can pass these values in as parameters so the full script runs without anyother interaction needed? </p>

<p>PS: i'm using ubuntu 14.04 LTS.</p>

<p>Thanks For your time :)</p>
