wlst basics

Invoke the wlst shell and log into a test domain:

[odc@parac001 bin]$ /home/odc/Oracle/Middleware/Oracle_Home/wlserver/common/bin/wlst.sh 

wls:/offline> connect(url='t3://localhost:7001')                
Please enter your username :weblogic
weblogic
Please enter your password :
Connecting to t3://localhost:7001 with userid weblogic ...
Successfully connected to Admin Server "AdminServer" that belongs to domain "base_domain".

Once online mode is reached, we can save credentials in order to reuse at scripts level:

wls:/base_domain/serverConfig> storeUserConfig('/home/odc/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin/scripts/configfile.secure','/home/odc/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin/scripts/keyfile.secure')
Creating the key file can reduce the security of your system if it is not kept in a secured location after it is created. Do you want to create the key file? y or n:y
y
The username and password that were used for this WebLogic Server connection are stored in /home/odc/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin/scripts/configfile.secure and /home/odc/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin/scripts/keyfile.secure.
wls:/base_domain/serverConfig>

And now, we can test the improved and silent login method:

wls:/offline>connect(userConfigFile='/home/odc/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin/scripts/configfile.secure',  userKeyFile='/home/odc/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin/scripts/keyfile.secure',url='t3://localhost:7001')
Connecting to t3://localhost:7001 with userid weblogic ...
Successfully connected to Admin Server "AdminServer" that belongs to domain "base_domain".

Warning: An insecure protocol was used to connect to the 
server. To ensure on-the-wire security, the SSL port or 
Admin port should be used instead.

wls:/base_domain/serverConfig>