Open the terminal and enter into where is project is:
The execute the following commands
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
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>
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
adding: META-INF/MLA.SF
adding: META-INF/MLA.RSA
signing: AndroidManifest.xml More info
Comments
Post a Comment