Encrypting agent passwords using security keys

Use the vcsencrypt utility to generate a security key to create a more secure passwords for agents.

See also Encrypting agent passwords.

Privilege requirements generating security keys

By defualt, only superusers can generate security keys.

You can grant password encryption privileges to group administrators.

See Granting password encryption privileges to group administrators.

Creating secure agent passwords

Follow these instructions to create secure passwords for agents.

To encrypt agent passwords using security keys

  1. Make sure you have the privileges required to encrypt passwords.

    See Privilege requirements generating security keys.

  2. Generate a security key from a node where VCS is running. You need to do this once.
  3. Encrypt the agent password with the security key that you generated.
  4. Verify that VCS uses the new encryption mechanism.
Granting password encryption privileges to group administrators

Follow these instructions to grant password encryption privileges to group administrators.

To grant password encryption privileges to group administrators

To restrict password encrtyption privileges to superusers

Changing the security key

Follow these instructions to change the security key.

If you change the security key, make sure you reencrypt all the passwords that you created with the new security key. Otherwise, agents will fail to decrypt the encrypted password correctly and hence manage to monitor resources correctly.

To change security key

  1. Save the VCS configuration and make it writeable.

    haconf -makerw

  2. Run the following command:

    vcsencrypt -gensecinfo -force

  3. Save the VCS configuration and make it read only.

    haconf -dump -makero