Signing your apk/application for release (keytool,jarsigner)

Tutorials with advanced 'difficulty' and more Lines of Code.

google-developer-conference

Postby apple2183 » Mon Apr 13, 2009 12:14 pm

apple2183
Junior Developer
Junior Developer
 
Posts: 24
Joined: Fri Apr 10, 2009 2:07 pm

Postby zpk1234 » Mon Jun 29, 2009 6:49 am

How can I get unsigned apk without eclipse? can I use the shell commond to export the unsigned apk file?
zpk1234
Junior Developer
Junior Developer
 
Posts: 22
Joined: Sat Jun 27, 2009 1:17 pm

Latest -- Signing android apps

Postby HaKr » Wed Nov 11, 2009 12:30 pm

Actually refered it for signing my app and so i followed it and did it successfully.Then i realised that there is a simplest way provided by Eclipse IDE.

All you have to do is right click on your project then "Android Tools>Export Signed Application".
1. Now a wizrd opens and it asks the project name .its present by default.
2.click next.It will have two options create from existing keystore or Create a new one
3.select create a new one. now select the location where you want to save the keystore.
4. select your password and retype password again.

Image

5.Now Fill the detais .A screenshot is provided to make it easy.
6.Now give path to where you want your signed application to be placed.
7.click finish and there is your signed android app.


If this was already posted .then my mistake. anyways if you didnt get anything kidly post.

Regards
HaKr
User avatar
HaKr
Freshman
Freshman
 
Posts: 2
Joined: Tue Nov 10, 2009 10:09 pm

Postby thetuxracer » Thu Jan 07, 2010 3:21 am

@HAKR yes, i did the same. I found it pretty late, after searchin and digging man pages for keytools and jarsigner..
anyway, seems to work. now for deployment ^^
thetuxracer
Developer
Developer
 
Posts: 26
Joined: Mon Jan 04, 2010 7:59 am
Location: Nashik, MH, India

Postby thetuxracer » Thu Jan 07, 2010 10:28 am

I also forgot to ask: Now that ive signed the application, from where do i find the certificate, so that i can obtain a Maps API key?
thetuxracer
Developer
Developer
 
Posts: 26
Joined: Mon Jan 04, 2010 7:59 am
Location: Nashik, MH, India

Postby enavarro » Thu Feb 11, 2010 9:21 pm

MrSnowflake wrote:
avolovoy wrote:Something tells we're up to see some interesting applications.
You haven't seen many questions here yet, I guess... :D


True that. Well I have made signing solutions for JAR signing and using Verisign-issued certs. I basically make the CSR using keytool, then send it to Verisign so that they can issue the cert and then import that certificate into the keystore, using keytool and the key alias. If you fail to include the Intermmediate CA or just plain do not have a certificate associated to your key.

This can be done using keytool -genkeypair switch, but most people forget to add the Distinguished Name lines. Example:
Code: Select all
keytool -genkey -alias Test -keyalg RSA -keysize 2048 -sigalg SHA1withRSA -keystore teststore.mks -dname "CN=Android Corporation,OU=Android,O=Anddev Org,L=Seattle,S=Washington,C=US"


And you can verify and extract the certificate later on. Sample command:

Code: Select all
keytool -list -keystore teststore.mks -storepass password -v
-Git R' Done
enavarro
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Feb 11, 2010 8:20 pm

Top

Postby Nathan » Sat Feb 20, 2010 8:00 pm

Translation:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. D: \ workspace \ keytool> D: \ WINDOWS \ dev \ Java \ jdk1.6.0_07 \ bin \ keytool-genkey-alias-anddev.keystore keyalg RSA-validity 20000-keystore keys / anddev.keystore
  3.  
  4. Enter the keystore password: YOURSECRETPASSPHRASE
  5.  
  6. Enter the password again: YOURSECRETPASSPHRASE
  7.  
  8. What is your first and last name?
  9.  
  10. [Unknown]: www.anddev.org
  11.  
  12. What is the name of your organizational unit?
  13.  
  14. [Unknown]: Android Application Development
  15.  
  16. What is the name of your organization?
  17.  
  18. [Unknown]: anddev.org
  19.  
  20. What is the name of your town or city?
  21.  
  22. [Unknown]: Schriesheim
  23.  
  24. What is the name of your state or your province?
  25.  
  26. [Unknown]: Baden-Wuerttemberg
  27.  
  28. What is the country code (two letters) f ³ r this unit?
  29.  
  30. [Unknown]: EN
  31.  
  32. Is CN = www.anddev.org, OU = Android Application Development, O = anddev.org, L = Shri
  33.  
  34. esheim, ST = Baden-Wuerttemberg, C = U.S. correct?
  35.  
  36. [No]: yes
  37.  
  38.  
  39.  
  40. F Enter the password an r ³ <anddev.keystore>.
  41.  
  42. (ENTER if your password the same as ³ f) r keystore: <ENTER>
Parsed in 0.136 seconds, using GeSHi 1.0.8.4
Nathan
Freshman
Freshman
 
Posts: 3
Joined: Sat Feb 20, 2010 3:53 am

Re: Signing your apk/application for release (keytool,jarsig

Postby inzhangbarbor » Fri Jul 02, 2010 3:05 pm

Thanks for this! It worked really well. I am just finishing up my first application that this is really useful.
inzhangbarbor
Freshman
Freshman
 
Posts: 4
Joined: Fri Jul 02, 2010 3:01 pm

Top
Previous

Return to Advanced Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests