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