The PropFilePasswordEncoder script
Use the PropFilePasswordEncoder script to encode passwords in properties files.
Product
This script is available in WebSphere Application Server and WebSphere Application Server Network Deployment.
Authority
To run this script, your user profile must have *ALLOBJ authority.
Syntax
PropFilePasswordEncoder fileName { passwordPropertiesList | -SAS } [ -profileName profile ] [ -help | -? ]Note: You must specify either the passwordPropertiesList parameter or the -SAS parameter.
Parameters
- fileName
This required parameter specifies the name of file in which passwords are encoded.- passwordPropertiesList
This parameter is required if you are encoding passwords in the soap.client.props file. Specify a one or more password properties that you want to encode.- -SAS
This parameter is required if you are encoding passwords in the sas.client.props file.- -profileName
This is an optional parameter. The value profile specifies an application server profile name. The script uses the password encoding algorithm that it retrieves from the specified profile. If you do not specify this parameter, the script uses the default profile.- -help or -?
If you specify this parameter, the script ignores all other parameters and displays usage text.
Examples
In these examples:
- install_root is /QIBM/ProdData/WebSphere/AppServer/V6/Base for WebSphere Application Server and WebSphere Application Server - Express, and /QIBM/ProdData/WebSphere/AppServer/V6/ND for WebSphere Application Server Network Deployment.
- user_root is the directory that contains your profile. Default values are /QIBM/UserData/WebSphere/AppServer/V6/Base/profiles for WebSphere Application Server and WebSphere Application Server Express, and /QIBM/UserData/WebSphere/AppServer/V6/ND/profiles for WebSphere Application Server Network Deployment.
This command encodes the passwords in the sas.client.props file for the default WebSphere Application Server profile:
install_root/bin/PropFilePasswordEncoder user_root/default/properties/sas.client.props -SASThis command encodes passwords in the soap.client.props file for the default Websphere Application Server profile:
install_root/bin/PropFilePasswordEncoder user_root/default/properties/soap.client.props com.ibm.SOAP.loginPassword,com.ibm.ssl.keyStorePassword,com.ibm.ssl.trustStorePasswordNote: These commands are wrapped for display purposes. When you run the PropFilePasswordEncoder script, enter the command as a single line.