Hi,
Is there a way to encrypt the certificate password for the certificate used by the Tomcat server in server.xml so that it’s not in clear text.
Tomcat does not have a built-in mechanism for encrypting the certificateKeystorePassword or similar fields. Apache chose not to implement one because of a fundamental problem that would make the encryption ineffective.
Tomcat runs as a service, and needs to start without waiting for a human to type a password or otherwise authenticate on its behalf. That means tomcat's account requires access to that password in plaintext to initialize the connector. If you encrypt it, you then need to store the decryption key for the encrypted password in plaintext somewhere where Tomcat's account can access it, and you have the same problem you started with.
Consequently, we depend on file system security to protect that password. Similarly, we depend on file system security to prevent an attacker from just altering our applications, or Tomcat itself.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.