About Java Keytool generating keystores essays

Source: Internet
Author: User

1, set the Java environment variable (ignore) 2, use Keytool to generate the KeyStore (I do not know how to call, someone called him the library, anyway know he is a storehouse on the line) (the following operations are running under DOS, plus-help to view the parameters of the command, For example, the command to generate the KeyStore is Keytool-genkey, and you can use KEYTOOL-GENKEY-HELP to see some of the parameters of the Genkey)

Keytool-genkey-alias Test1-keyalg Rsa-keystore E:/keystoretest/test.keystore

Genkey: Generating parameters for the KeyStore

Alias: Generates an alias key public key pair and certificate, a keystore can have multiple aliases;

KEYALG: Encryption Algorithm (RSA is used here)

E:/keystoretest/test.keystore the path generated by the KeyStore

    Note: If you are operating on a keystore, you need to add the address of the-keystore KeyStore at the end

3. View KeyStore

Keytool-list-v-keystore E:/keystoretest/test.keystore

    the-list command prints the MD5 thumbprint of the certificate. If you Specify the-v option, the certificate will be printed in a readable format, and if the-RFC option is specified, the certificate will be output in printable encoding format

4. Export the certificate

Keytool-export (specifically, you can export the certificate according to the-HELP parameters)

5. Import the certificate

Import a given certificate into a KeyStore

Keytool-import

The KeyStore password is required to import the target KeyStore

6. Delete the certificate

Keytool-delete

About Java Keytool generating keystores essays

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.