Vous êtes sur la page 1sur 3

Page 1

Both of these tools are available in the JDK. In most cases, you can tell the SDK build tools how to find
these utilities by setting your JAVA!"#$ environment variable so it references a suitable JDK.
%. "&en terminal
'. (reate certificate by e)ecuting this command*
+he following will then a&&ear*
Re-enter new password:
What is your first and last name?
What is the name of your organizational unit?
[Unknown]: Alliance
What is the name of your organization?
[Unknown]: Alliance
What is the name of your ity or !ocality?
[Unknown]: e"u
What is the name of your #tate or $ro%ince?
[Unknown]: e"u
What is the two-letter country code for this unit?
[Unknown]: $&
[no]: yes
'enerating ()*+, "it R#A key pair and self-signed certificate -#&A.withR#A/ with a %alidity of .,)(0* days
1nter key password for 2cert3
Re-enter new password:
"r, you can e)ecute this straight forward command*
+he difference is, you will no longer be &rom&ted to in&ut for your first name, last name, organi,ation, etc
since you already &rovided them on your command.
Re-enter new password:
Re-enter new password:
Creating a Certificate using Keytool
-(odesigning AI. A&&lication in #ac "S/
Before you begin, ma0e sure that the Keytool utility and Jarsigner utility are available to the SDK build tools.
Alternatively, you can add the JDK version of Keytool and Jarsigner to your 1A+! variable.
keytool -keystore ipmo45ks -genkeypair -alias ipmo -keyalg R#A -keysize (*+, -%alidity .,(0*
1nter keystore password:
[Unknown]: ipmo
6s 78ipmo) 9U8Alliance) 98Alliance) !8e"u) #:8e"u) 8$& correct?
for: 78ipmo) 9U8Alliance) 98Alliance) !8e"u) #:8e"u) 8$&
-R1:UR7 if same as keystore password/:
[#toring ipmo45ks]
keytool -keystore ipmo45ks -genkeypair -alias ipmo -keyalg R#A -keysize (*+, -%alidity .,(0* ;
-dname <78ipmo)9U8Alliance)98Alliance)!8e"u)#:8e"u)8$&<
1nter keystore password:
1nter key password for 2ipmo3
-R1:UR7 if same as keystore password/:
Page 2
2.
Re-enter new password:
6mport command completed: . entries successfully imported) * entries failed or cancelled
3. $)&ort a&&lication4s release build.
a. "n 5lash Builder, go to 1ac0age $)&lorer and select &ro6ect folder to e)&ort.
b. "n the menu bar, select 1ro6ect 7 $)&ort .elease Build
c. Select 8oogle Android.
(lic0 Browse button to locate directory to where e)&orted file be &laced.
#a0e sure to select 9Signed &ac0ages for each target &latform:
+hen clic0 ;e)t.
(onvert newly created 0eystore to &0cs%' -.&%'/
keytool -importkeystore -srckeystore ipmo45ks -destkeystore ipmo4p.( -srcstoretype 5ks ;
-deststoretype pkcs.(
1nter destination keystore password:
1nter source keystore password:
1ntry for alias ipmo successfully imported4
Page 3
d. <ocate certificate and &rovide its &assword.
e. (lic0 5inish.
=. -"&tional/ Verify a&0 file using 6arsigner.
5arsigner -%erify -%er"ose -certs ipmo4apk
If the A1K is signed &ro&erly, Jarsigner &rints >6ar verified>
?@sers?geoff?6acob?i&mo.&%'
Acc2BB

Vous aimerez peut-être aussi