Changing passwords for the Tomcat keystore
You must change the default passwords for the Tomcat keystore and private keys.
keytool
command. If you change the key password to a value other than the keystore password, you must update the password in the secured-installed.properties file manually. The properties for Tomcat key and keystore passwords are defined as tomcat.key.password and tomcat.keystore.password in the secured-installed.properties file.
The
properties are referenced in the
server/opt/tomcat/conf/server.xml file as
keyPass="${tomcat.key.password}"
and
storePass="${tomcat.keystore.password}"
in the HTTPS
connector configuration.
- If you change the keystore password, then you must change the Tomcat private key password as well.
- If the keystore has a typical configuration where no explicit key password is set, then you can just change the keystore password to change them both.
- You can directly change the key password only in advanced scenarios where the key password is already different from the store password.
- You are responsible for managing your passwords. Deploy currently does not include the password recovery feature.
When you are upgrading from version 8.1.0 or before, the plain
text passwords in the server.xml file are replaced with
the ${tomcat.key.password}
and
${tomcat.keystore.password}
variables, and the
passwords are added to the secured-installed.properties
file automatically.