이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 6. Vault For Red Hat JBoss Web Server
6.1. About password vault in Red Hat JBoss Web Server 5.3 링크 복사링크가 클립보드에 복사되었습니다!
Tomcat-vault is a PicketLink vault extension for Apache Tomcat that allows users to mask passwords and other sensitive strings, and store them in an encrypted Java keystore. Using the vault enables you to stop storing clear-text passwords in your Tomcat configuration files, because Tomcat can lookup passwords and other sensitive strings from a keystore using the vault.
For Using CRYPT with the Vault, refer Using CRYPT.
6.2. Installing the JBoss Web Server password vault from .zip archive 링크 복사링크가 클립보드에 복사되었습니다!
As tomcat password vault is pre-installed by the jws-5.3.0-application-server.zip file. The password vault can be used once configured and it is located at: JWS_HOME/tomcat/lib/tomcat-vault.jar.
If the JBoss Web Server has been installed from RPMs on Red Hat Enterprise Linux, you need to install the JBoss Web Server RPM for tomcat-vault.
Procedure
Install the password vault as the root user by executing:
yum install jws5-tomcat-vault
yum install jws5-tomcat-vaultCopy to Clipboard Copied! Toggle word wrap Toggle overflow
6.4. Enabling password vault in JBoss Web Server 링크 복사링크가 클립보드에 복사되었습니다!
In the following procedure, replace JWS_HOME with the path to your JBoss Web Server installation. Also, the paths below use / for directory separators.
Procedure
- Stop Tomcat if it is running.
Edit
JWS_HOME/tomcat/conf/catalina.properties, and add the following line:org.apache.tomcat.util.digester.PROPERTY_SOURCE=org.apache.tomcat.vault.util.PropertySourceVault
org.apache.tomcat.util.digester.PROPERTY_SOURCE=org.apache.tomcat.vault.util.PropertySourceVaultCopy to Clipboard Copied! Toggle word wrap Toggle overflow
6.5. Creating a Java Keystore in JBoss Web Server 링크 복사링크가 클립보드에 복사되었습니다!
To use a password vault, you must first create a Java keystore.
The values in the procedure are examples only. Replace them with values specific to your environment.
For an explanation of the parameters, use the keytool -genseckey -help command.
Procedure
Create a Java keystore using the
keytool -genseckeycommand:keytool -genseckey -keystore JWS_HOME/tomcat/vault.keystore -alias my_vault -storetype jceks -keyalg AES -keysize 128 -storepass <vault_password> -keypass <vault_password> -validity 730
$ keytool -genseckey -keystore JWS_HOME/tomcat/vault.keystore -alias my_vault -storetype jceks -keyalg AES -keysize 128 -storepass <vault_password> -keypass <vault_password> -validity 730Copy to Clipboard Copied! Toggle word wrap Toggle overflow
6.6. External password vault configuration 링크 복사링크가 클립보드에 복사되었습니다!
The vault.properties file for the tomcat-vault can be stored outside of JWS_HOME/tomcat/conf/ in a CATALINA_BASE/conf/ directory (if set).
To set the CATALINA_BASE directory, follow the instructions in the section Advanced Configuration - Multiple Tomcat Instances in the Running The Apache Tomcat 9.0 Servlet/JSP Container document found on the Apache Tomcat Website.
The default location for CATALINA_BASE is JWS_HOME/tomcat/ also known as CATALINA_HOME.
Additional Resources
For more information on setting CATALINA_BASE, see:
6.7. Initializing Password Vault 링크 복사링크가 클립보드에 복사되었습니다!
6.7.1. Initializing password vault for Apache Tomcat interactively 링크 복사링크가 클립보드에 복사되었습니다!
The values below are examples only. Replace them with values appropriate for your environment.
Procedure
Initialize password vault using the
tomcat-vault.shscript:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Note the output for the Tomcat properties file, as you will need this to configure Tomcat to use the vault.
6.7.2. Initializing the Vault for Apache Tomcat non-interactively (silent setup) 링크 복사링크가 클립보드에 복사되었습니다!
The Vault for Apache Tomcat can be created non-interactively by providing the required input as arguments to the tomcat-vault.sh script. The vault.properties file is also created as output of the tomcat-vault.sh script when the -g, --generate-config option is used.
The values below are examples only. Replace them with values appropriate for your environment.
Procedure
-
Initialize password vault using the
tomcat-vault.shscript:
6.8. Configuring Tomcat to use the password vault 링크 복사링크가 클립보드에 복사되었습니다!
Prerequisites
Password vault for Tomcat is initialized.
For information about initializing password vault for Tomcat, see Initializing password vault for Apache Tomcat interactively
Procedure
In
JWS_HOME/tomcat/conf/, create a file namedvault.propertiescontaining the vault configuration produced when initializing the vault.The values provided below use the example vault initialized in procedure Initializing password vault for Apache Tomcat interactively
NoteFor
KEYSTORE_PASSWORD, you must use the masked value that was generated when initializing the vault.Copy to Clipboard Copied! Toggle word wrap Toggle overflow