examplestore
and create an entry with a newly generated public/private key pair (with the public key in a certificate).examplestore
and to generate keys:keytool
subparts mean.keystore
command, you will be prompted for your distinguished-name information. Following are the prompts; the bold indicates what you should type.keytool
command creates the keystore named examplestore
(if it doesn't already exist) in the same directory in which the command is executed. The command generates a public/private key pair for the entity whose distinguished name has a common name of Susan Jones and the organizational unit of Purchasing.signFiles
.keytool
command, defaults are used for unspecified options that have default values, and you are prompted for any required values. For the genkey
command, options with default values include alias (whose default is mykey
), validity (90 days), and keystore (the file named .keystore
in your home directory). Required values include dname, storepass, and keypass.