How can I resolve the errors "Daemon socket connection error" or "Invalid Operation" for my CloudHSM client?

Last updated: 2019-11-20

I am attempting to connect to the key_mgmt_util command line tool or the AWS CloudHSM client, and receive the error "Daemon socket connection error" or "Invalid Operation".  

Short Description

CloudHSM Client software uses a client daemon to connect and perform operations on the HSM using the key_mgmt_util command line tool. These errors occur if:

The client daemon is stopped.

-Or-

The client configuration file doesn't contain the IP address of an active and reachable HSM in the cluster.

Resolution