importpassword

{-alias alias} [-keypass keypass] {-storetype storetype} {-keystore keystore} [-storepass storepass] {-providerClass provider_class_name {-providerArg provider_arg}} {-v} {-protected} {-Jjavaoption}

Imports a passphrase and stores it in a new KeyStore.SecretKeyEntry entity that is identified by the alias parameter. The passphrase can be supplied by using the standard input stream; otherwise, the user is prompted for it. The keypass parameter is a password that is used to protect the imported passphrase. If no password is provided, the user is prompted for it. If you press the Return key at the prompt, the key password is set to the same password as that used for the keystore. The keypass parameter must be at least 6 characters long.