Recently I am working on installing Oralce Fusion middleware products which require WebLogic Application Server.
During start/stop Weblogic Application Server, we have to manually entering the username and password.To try to avoid doing this, we can add boot.properties file in security directory
1) go to server instance security directory, for example, ${Weblogic_Home}/user_projects/domains/testdomain/servers/AdminServer/security.
Note: must be server instance directory, if the boot.properties created at other directory, it will not work.
2) create a file named boot.properties as following:
username=weblogic
password=123456789
Note: no single or double quote for the values, or it will not work
3) start the weblogic server using command start_Weblogic,sh and then the username and password fields will be encrypted automatically.
For IBM WebSphere Application Server, if we enabled global security, we also need to change file names soap.client.props in WAS instance directory to avoid entering the username and password.
1) go to WAS instance property directory, for example, <WAS Instance>/properties
2) open file soap.client.props and update the following fields and then save it.
com.ibm.SOAP.securityEnabled=true
com.ibm.SOAP.loginUserid=wasuser
com.ibm.SOAP.loginPassword=12345678
3) To encrypt the password, we have to run the following commands
../bin/PropFilePasswordEncoder.sh soap.client.props com.ibm.SOAP.loginPassword
4) then the password will be encrypted.
now you do not need to put username and password any longer.
No comments:
Post a Comment