Encrypt tomcat keystore password

前端 未结 6 961
北海茫月
北海茫月 2020-12-25 08:44

Is there an option to encrypt keystorePass value in tomcat server.xml? I don\'t want it to be a plain text

    

        
6条回答
  •  情话喂你
    2020-12-25 09:14

    If someone has access to your server.xml, the plain text value of your keystorePass appearing are only one of your worries.

    If someone has access from there, they could do much more harm. Encrypting the password here is really just moving the problem elsewhere as then someone could find the encryption key for this encryption key (a bit like a Russian doll).

    If you want to encrypt the password, you have to override the Connector implementation to decrypt the encrypted password so that the real pwd is accessible or available to tomcat.

提交回复
热议问题