Tuesday, 26 July 2011

Password encryption mechanism in wlst script in weblogic


set path=C:\bea923\jdk150_12\bin

set classpath=C:\bea923\weblogic92\server\lib\weblogic.jar

java weblogic.WLST

wls:/offline>connect()

username:****

password:****

wls:/base_domain/serverConfig> storeUserConfig('C:/temp/encrypt.secure','C:/temp
/keyfile.secure')

connect(userConfigFile='C:/temp/encrypt.secure', userKeyFile='C:/temp/keyfile.secure').
====================================================
or
pwd = encrypt('passwordtobe encrypted','C:/bea923/user_projects/domains/base_domain')

print pwd

No comments:

Post a Comment