db2credman - Credential and security key management command

Use this tool for credential and key management tasks.

Authorization

SYSADM

Required connection

None

Command syntax

db2credman command

Read syntax diagramSkip visual syntax diagram db2credman -stash -passwordpw -to stash_file.sth -version-v-h-help

Command parameters

-stash
Stores the password in obfuscated form in a stash file. A stash file allows the database manager to read the obfuscated password when the PKCS #11 keystore is accessed.
-password pw

Specifies the keystore password to be stashed. If a password is not specified, you will be prompted to provide one.

-to stash_file.sth

Specifies the path to the file where the password is stashed.

-version or -v

Prints the program's version.

-h or -help

Displays the help for this command.

Examples

  • To stash the password to a file:
    db2credman -stash -password Str0ngPassw0rd -to ~/pkcs11_pwd.sth
    
    This example stashes the provided password to the file pkcs11_pwd.sth
  • To prompt for the password and stash it to a file:
    db2credman -stash -to ~/pkcs11_pwd.sth
    
  • To print the db2credman description and syntax information, type either of the following commands:
    db2credman -help
    or
    db2credman -h

Usage notes

  • The -stash parameter is mandatory.
  • The -to parameter is mandatory.