Tuesday 7 February 2023

How to change the password of keystore?

Syntax

keytool -storepasswd -keystore {keystore_file}

 

Example

keytool -storepasswd -keystore myKeystore.jks

 

$keytool -storepasswd -keystore myKeystore.jks
Enter keystore password:  
New keystore password: 
Re-enter new keystore password: 

Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore myKeystore.jks -destkeystore myKeystore.jks -deststoretype pkcs12".

 

  

Previous                                                 Next                                                 Home

No comments:

Post a Comment