Introduction and generation of secret keys for Android directory

Source: Internet
Author: User
Tags dname

All resource global indexes in the project are stored in the R.java

Bin to store compiled files

Asserts store the files that need to be released to the phone

Libs Storage directory for third-party libraries

----------------------------------------------------

Generate a secret key certificate

D:\Program Files\java\jdk1.8.0_25\bin>keytool

Command:

-certreq Generating a certificate request
-changealias changing an alias for an entry
-delete Deleting entries
-exportcert Exporting certificates
-genkeypair generating a key pair
-genseckey Generating Keys
-gencert generating a certificate based on a certificate request
-importcert Importing a certificate or certificate chain
-importpass Import Password
-importkeystore importing one or all entries from another KeyStore
-KEYPASSWD changing the key password for an entry
-list listing entries in the KeyStore
-printcert Printing Certificate Contents
-printcertreq Print the contents of a certificate request
-PRINTCRL Printing the contents of a CRL file
-STOREPASSWD changing the store password of the KeyStore

Use "Keytool-command_name-help" to get the usage of Command_name

D:\Program Files\java\jdk1.8.0_25\bin>keytool-genkeypair-help
Keytool-genkeypair [OPTION] ...

Generate key Pair

Options:

-alias <alias> aliases of the entries to be processed
-keyalg <keyalg> Key algorithm name
-keysize <keysize> Key bit size
-sigalg <sigalg> Signature Algorithm name
-destalias <destalias> Target Aliases
-dname <dname> Unique Distinguished Name
-startdate <startdate> Certificate validity start date/time
-ext <value> Extensions
-validity <valDays> Effective Days
-keypass <arg> Key Password
-keystore <keystore> KeyStore Name
-storepass <arg> keystore Password
-storetype <storetype> KeyStore Types
-providername <providername> Provider Name
-providerclass <providerclass> Provider class name
-providerarg <arg> Provider Parameters
-providerpath <pathlist> Provider class path
-V Verbose output
-protected Pass the password of the protected mechanism

Use "Keytool-help" to get all available commands

D:\Program files\java\jdk1.8.0_25\bin>keytool-genkeypair-v-keystore E:/androi
D.keystore-alias Bihu-keyalg rsa-validity 300000
Enter KeyStore Password:
Enter the new password again:
What is your first and last name?
[Unknown]: Bihu
What is the name of your organizational unit?
[Unknown]: 51zixue
What is your organization's name?
[Unknown]: 51zixue
What is the name of your city or region?
[Unknown]: CQ
What is the name of your state/province?
[Unknown]: CQ
What is the two-letter country/region code for this unit?
[Unknown]: CN
Cn=bihu, Ou=51zixue, O=51zixue, L=cq, St=cq, C=CN right?
[No]: Y

Generating 2,048-bit RSA key pair and self-signed certificate (SHA256WITHRSA) for the following objects (valid for 300,0
00 days):
Cn=bihu, Ou=51zixue, O=51zixue, L=cq, St=cq, C=CN
Enter the key password for <bihu>
(If the KeyStore password is the same, press ENTER):
[Storing E:/android.keystore]

Introduction and generation of secret keys for Android directory

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.