Skip to main content

Cordova signed app for andriod

Open the terminal and enter into where is project is:
The execute the following commands

1) cordova build –release android
2) keytool -genkey -v -keystore MY-mobileapps.keystore -alias MYmobileapps -keyalg RSA -keysize 2048 -validity 10000

This comman will ask for some info as below :

Enter keystore password:
Re-enter new password:
What is your first and last name?
[Unknown]: abc
What is the name of your organizational unit?
[Unknown]: abc
What is the name of your organization?
[Unknown]: abc
What is the name of your City or Locality?
[Unknown]: abc
What is the name of your State or Province?
[Unknown]: abc
What is the two-letter country code for this unit?
[Unknown]: IN
Is CN=abc, OU=abc, O=abc, L=abc, ST=abc, C=IN correct?
[no]: y
Generating 2,048 bit RSA key pair and self-signed certificate (SHA256withRSA) with a validity of 10,000 days
for: CN=abc, OU=abc, O=abc, L=abc, ST=abc, C=IN
Enter key password for <MYmobileapps>
(RETURN if same as keystore password):
[Storing NAME-mobileapps.keystore]
3) jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore MY-mobileapps.keystore androidj.apk MYmobileapps
Enter Passphrase for keystore:<your password>
updating: META-INF/MANIFEST.MF
adding: META-INF/MLA.SF
adding: META-INF/MLA.RSA
signing: AndroidManifest.xml More info

Comments

Popular posts from this blog

What is left join

MySQL or Sql JOINS are used to retrieve data combining rows from two or more tables based on the relation between them. MySQL JOIN or Sql JOIN is executed by a SQL statement. When we require to retrieve data from two or more tables base on some relation, SQL or MySQl join is performed. Joining of tables involves the tricks to retrieve data from multiple table using a SQL statement. LEFT JOIN : LEFT JOIN returns all the table rows from first table and matching rows from the  Read more