Wednesday, 2 April 2014

PropFilePasswordEncoder command

The PropFilePasswordEncoder script

Use the PropFilePasswordEncoder script to encode passwords in properties files

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.

First open the /u03/local/opt/was/was70/profiles/dmgr/properties/soap.client.props file in the text editor and change value of following three properties

ü  com.ibm.SOAP.securityEnabled=true
ü  com.ibm.SOAP.loginUserid=bharath
ü  com.ibm.SOAP.loginPassword=welcome321




























Use the “PropFilePasswordEncoder.sh” command to encrypt the file

[oracle@websphe bin]$ ./PropFilePasswordEncoder.sh /u03/local/opt/was/was70/profiles/dmgr/properties/soap.client.props com.ibm.SOAP.loginPassword
[oracle@websphe bin]$



No comments: