'Change Private Key file password with keytool command

I have only one option to change the password of private key file with "keytool" command only. can you tell how i can change password with keytool command only.

i am getting error while trying to change password of private key file. keytool -keypasswd -alias user.http.key -new TesP@s434

keytool error: java.lang.Exception: Keystore file does not exist: /root/.keystore



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source