Generating key through command line.

Posted on Updated on

Before publishing an application or before release the application must be signed with a certificate whose private key is held by the application’s developer. Its not necessary that the certificate should be obtained from a certificate authority. Android allows signing the applications using self-signed certificates. The following steps describe the procedure to generate keys that are necessary for signing the application. Make sure you have updated the JRE (Java Runtime Environment). The tutorial explained here is done using system running on Windows 7 with JRE6 installed.

1. Open RUN and type cmd.

2.Goto  C:\Program Files\Java\jre6\bin by typing

cd/
cd program files
c:\Program Files>cd java
c:\Program Files\Java>cd jre6
c:\Program Files\Java\jre6>cd bin
c:\Program Files\Java\jre6\bin>

3.Now the bin folder contains the keytool for generating the key. Type the following command to generate the key using keytool

keytool -genkey -v -keystore (type the folder you want to go followed by keyname.keystore) -alias (specify name that you like) -keyalg RSA -validity 10000

4.After executing the command its prompts for password. Retype the password and fill in the details.

5.Provide password for the alias.

6.The key is generated in the folder specified during the creation.

7.Use the key for signing the android application.

2 thoughts on “Generating key through command line.

    Nicolle Sandrock said:
    October 18, 2011 at 8:17 am

    Hello Webmaster, I noticed that https://androidemulator.wordpress.com/2011/10/08/generating-key-through-command-line/ is ranking pretty low for some keywords, this may be due to the new Google Panda update, or it could be due to a variety of other factors. I’m sure you already know about On-page SEO, where Google cares highly about proper formatting of various H1/H2/H3 tags, having your main keyword appear in the beginning of your post and having your post end with the keyword, along with having keyword related alt tags and very relevant LSI. However, you do not seem to have the proper Keywords or relevant Keywords in your posts and in the website. Right now you need a tool or plugin that will allow you to check on Keyword insights, search trends and check for backlink analysis and to find out your Keyword competition. To find a Keyword Plugin that combines both Keyword Research and has the ability as a Rank Checker is what WordPress Seo Keyword, please check out our 5 minute video.

    Obtaining Google Map API Key « DEXTERS ANDROLAB said:
    April 23, 2012 at 9:35 pm

    […] I have previously described how to create certificate through command line.  Once the certificate has been generated use the following steps to obtain MD5 hash value of the […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s