lockb.ekey is referred by Device server despite choosing Advanced Security during installation.
book
Article ID: 319859
calendar_today
Updated On:
Products
VMware Smart Assurance
Issue/Introduction
Symptoms:
lockb.ekey is referred by Device server despite choosing Advanced Security Error "Lockbox Access Error: The primary internal decryption routine failed" is seen on console when lockbox is unlocked or when job is scheduled.
Impact/Risks:
Unable to run any user scheduled job like pull/push/compliance audit/Test credential.
However system created job like healthcheck would work as it does not look for lockbox key
Environment
NCM - 10.1.x
Cause
Lockbox has corrupted entries due to which Device Server unable to recognize security selected during installation hence looks for default lockb.ekey.
Resolution
NOTE: Take backup of $VOYENCE_HOME/data/lockb.clb to non-NCM path ex: /tmp before proceeding with below steps.
Steps to remove any corrupted/inconsistencies which might have been created during installation/migration:
source /etc/voyence.conf
Create a copy of the original lockbox from AS (lockb.clb) and change the name to csp.clb under $VOYENCE_HOME/lockbox/xml/ directory.
Command to be executed àcp $VOYENCE_HOME/data/lockb.clb $VOYENCE_HOME/lockbox/xml/csp.clb
Navigate to $VOYENCE_HOME/bin, and run ./cstadmin list-hosts, provide the lockbox password here when prompted.
This command will list details of all hosts which includes IP, hostname and FQDN that has been attached to lockbox ($VOYENCE_HOME/lockbox/xml/csp.clb)
Find the entries that are relevant to the Device Server where issue (lockb.ekey is expected when advanced security is chosen) is seen, there will be multiple entries, all need to be removed one-by-one.
To remove entries from the lockbox, run ./cstadmin remove-host <hostname> , provide the lockbox password here when prompted.
Eg: ./cstadmin remove-host <IP_ADDRESS> OR ./cstadmin remove-host <HOSTNAME> Output will be similar to : cstadmin: Host #.#.#.# removed from authorized host list for the Lockbox $VOYENCE_HOME/lockbox/xml.
Once all the relevant entries have been removed, run ./cstadmin list-hosts to double check and see if all hosts have been removed properly.
Step to add the hostname and IP again to the lockbox:
Run ./cstadmin add-host <hostname>, provide the lockbox password here when prompted.
Eg: ./cstadmin add-host <IP_ADDRESS> OR ./cstadmin add-host <HOSTNAME> Output will be similar to : cstadmin: Host #.#.#.# added to authorized host list for the Lockbox $VOYENCE_HOME/lockbox/xml.
Once the host has been added, again run ./cstadmin list-hosts to double check and see if the entry is present.
Step to copy lockbox to DS:
Copy lockbox ($VOYENCE_HOME/lockbox/xml/csp.clb) to the Device Server whose detail (IP/hostname/FQDN) is just added and copy it under $VOYENCE_HOME/data/lockb.clb, make sure the copy is correctly done.
Use the cksum command to verify and then change the permissions to root:cst
Once copy has been done, and permissions set properly, unlock the lockbox using the command-