Technical data

B WebLogic Server Command-Line Interface Reference
B-22 Administration Guide
2. When you create an additional user-configuration file, specify the existing key
file.
For example, enter the following command:
java weblogic.Admin -username username -password password
-userconfigfile c:\anotherConfigFile -userkeyfile e:\myKeyFile
STOREUSERCONFIG
Examples
In the following example, a user who is logged in to a UNIX operating system as joe
encrypts the username
wlAdmin and password wlPass:
java weblogic.Admin -username wlAdmin -password wlPass
STOREUSERCONFIG
The command determines whether a key file named
~joe/joe-WebLogicKey.properties exists. If such a file does not exist, it prompts
the user to select
y to confirm creating a key file. If the command succeeds, it creates
two files:
~joe\joe-WebLogicConfig.properties
~joe\joe-WebLogicKey.properties
The file joe-WebLogicConfig.properties contains an encrypted version of the
strings
wlAdmin and wlPass. Any command that uses the
~joe\joe-WebLogicConfig.properties file must specify the
~joe\joe-WebLogicKey.properties key file.
In the following example, the user
joe is a System Administrator who wants to create
a user-configuration file for an operating-system account named
pat. For the sake of
convenience,
joe wants to create the user-configuration file in pat’s home directory,
which will simplify the syntax of the
weblogic.Admin commands that pat invokes.
For added security, only one key file exists at
joe’s organization, and it is located on
a removable hard drive.
To create a user configuration file in
pat’s home directory that is encrypted and
decrypted by a key file name
e:\myKeyFile:
java -Duser.name=pat -Duser.home="C:\Documents and Settings\pat"
weblogic.Admin -username wlOperatorPat -password wlOperator1
-userkeyfile e:\myKeyFile
STOREUSERCONFIG