Change the Keystore
Passwords of the
vSphere
Replication Appliance
vSphere
Replication
ApplianceTo increase
security, you can change the passwords of the
vSphere
Replication
appliance keystore. If you copy the keystores from
the appliance to another machine, you must change the passwords before the copy
operation.
The keystore passwords might
be stored in an access restricted configuration file.
vSphere
Replication
has the following keystores:
- /opt/vmware/hms/security/hms-keystore.jks, which contains thevSphere Replicationappliance private key and certificate.
- /opt/vmware/hms/security/hms-truststore.jks, which contains additional CA certificates besides the ones that Java already trusts.
- To change the password for thehms-keystore.jkskeystore, open the remote console of yourvSphere Replicationvirtual machine and log in as root.
- Obtain the current keystore password.# /opt/vmware/hms/bin/hms-configtool -cmd list | grep keystoreExample of the outputhms-keystore-password =old_password
- Change the keystore password.# /usr/java/default/bin/keytool -storepasswd -storepass old_password -new new_password -keystore /opt/vmware/hms/security/hms-keystore.jks
- Change thevSphere Replicationappliance private key password.The following command is a long, single command and must be run at once. There are breaks in the command for better visibility. Verify that the command returns a success message.# /usr/java/default/bin/keytool -keypasswd -alias jetty -keypass old_password -new new_password -storepass new_password -keystore /opt/vmware/hms/security/hms-keystore.jks
- Update the configuration with the new password./opt/vmware/hms/bin/hms-configtool -cmd reconfig -property 'hms-keystore-password=new_password'
- Update the tomcatserver.xmlfile with the new password.sed -i 's/old_password/new_password/g' /var/opt/apache-tomcat/webapps/dr/WEB-INF/classes/h5dr.properties
- Reboot the appliance for the changes to take effect.# reboot
- Use a supported browser to log in to theVRMS Appliance Management Interface.The URL for theVRMS Appliance Management Interfaceis https://vr-appliance-address:5480.
- ClickConfigure, and clickRestart.
If you want to change the
truststore passwords of the
vSphere
Replication
appliance, see
Change the Truststore Passwords of the vSphere Replication Appliance.