Keystore

Create Keystore

The creation of the KeyStore is done with the original Oracle JAVA tool KeyTool, which is supplied with JAVA.

../_images/keytoolgenkey.PNG
  • The argument -genkey is used for key generation.
  • -alias names the key.
  • -keystore names the key file. If the argument is missing, the new key is added to the default keystore.
  • -keyalg determines the algorithm.
  • -keysize determines the key length in bits.
  • Validity determines the validity of the key in days.

Display content of the keystore

With the tool keytool you can also display the content of a keystore:

../_images/keytoollist.PNG