Technical data

B WebLogic Server Command-Line Interface Reference
B-18 Administration Guide
STOREUSERCONFIG
Creates a user-configuration file and an associated key file. The user-configuration file
contains an encrypted username and password. The key file contains a secret key that
is used to encrypt and decrypt the username and password.
When you use other
weblogic.Admin or weblogic.Deployer commands, you can
specify the user-configuration file and key file instead of entering an unencrypted
username and password on the command line or including unencrypted credentials in
scripts. See “Summary of User Credentials Arguments” on page -4.
Only the key file that originally encrypted the username and password can decyrpt the
values. If you lose the key file, you must create a new user-configuration and key file
pair.
Caution: You must ensure that only authorized users can access the key file. Any
user who accesses a valid user-configuration and key file pair gains the
privileges of the encrypted username. To secure access to the key file, you
can store the key file in a directory that provides read and write access only
to authorized users, such as WebLogic Server administrators.
Alternatively, you can write the key file to a removable medium, such as a
floppy or CD, and lock the medium in a drawer when it is not being used.
Unlike other
weblogic.Admin commands, the STOREUSERCONFIG command does not
connect to a WebLogic Server instance. The data encryption and file creation are
accomplished by the JVM in which the
STOREUSERCONFIG command runs. Because it
does not connect to a WebLogic Server instance, the command cannot verify that the
username and password are valid WebLogic Server credentials.
Syntax
java weblogic.Admin
-username username [-password password]
[ -userconfigfile config-file ] [ -userkeyfile keyfile ]
STOREUSERCONFIG