The amsfopassorwd script accepts the Message Queue broker password in clear text and returns the encrypted password in a file. You can then use this file as input to the amsfo script (PASSWORDFILE variable).
The amsfopassword script is located in the following directory:
Solaris systems: AccessManager-base/SUNWam/bin
Linux systems: AccessManager-base/identity/bin
The default AccessManager-base installation directory is /opt on Solaris systems and /opt/sun on Linux systems.
Use the following syntax to run the amsfopassword script.
amsfopassword -f filename | --passwordfile filename -e password | --encrypt password amsfopassword -h | --help
The following table describes the amsfopassword script arguments.
Table 6–5 amsfopassword Script Arguments
Argument |
Description |
---|---|
-f filename | --passwordfile filename |
Path to the destination file where amsfopassword stores the encrypted password. |
-e password | --encrypt password |
Clear text password that amsfopassword encrypts. |
-h | --help |
Display the amsfopassword command usage and then exit. |
Log in as or become superuser (root).
Run the amsfopassword script. For example, on a Solaris system with Access Manager installed in the default directory:
# cd /opt/SUNWam/bin # ./amsfopassword -f /opt/SUNWam/.password -e mypassword
Use the encrypted password in the /opt/SUNWam/.password file as input to the amsfo script (PASSWORDFILE variable)