Restoring HSM Backup to New Instance
Follow the steps to restore an HSM from a backup to a new instance:
Click on CloudHSM in the Services section of the AWS Console and find the existing cluster for the HSM you want to restore. AWS CloudHSM is only billing if there is an HSM in the active cluster.
Select the link to the cluster that contains the HSM material to restore.

Click Create HSM and step through the wizard to create a new cluster by selecting the Subnet/AZ for the HSM.
Once completed, AWS takes some time to create the HSM. During this time, the state is Create in progress.

Once complete, the HSM state will be active. Click the refresh button

to refresh the status.
Ensure the appropriate security group for the HSM created is assigned to the SignServer Enterprise Cloud Instance. For more information, see Assigning the Security Group to the SignServer Instance.
SSH into your SignServer instance with your SSH key using the following command syntax:
CODE# ssh -i ~/Documents/my-ssh.pem ec2-user@ec2-my-public-ec2-ip.compute-1.amazonaws.comEnsure that the certificate that is used to authenticate with the CloudHSM resides at:
CODE# /opt/cloudhsm/etc/customerCA.crtStop the CloudHSM client using one of the following commands:
CODE# sudo stop cloudhsm-client or # sudo service cloudhsm-client stopConfigure the CloudHSM client with the following command replacing
172.16.2.37with the IP address of your HSMCluster:CODE# sudo /opt/cloudhsm/bin/configure -a 172.16.2.37Copy any public key certificates used with SignServer in the past to the following directory (SignServer will not be able to read any keys in CloudHSM without the matching public certificate that was created with it):
CODE# /opt/signserver/.liquidsec/Start the CloudHSM client with the following command:
CODE# sudo start cloudhsm-client or # sudo service cloudhsm-client startUpdate the cloudhsm_mgmt_util Configuration File
CODE# sudo /opt/cloudhsm/bin/configure -mStart cloudhsm_mgmt_util to ensure you can connect to the HSM
CODE# /opt/cloudhsm/bin/cloudhsm_mgmt_util /opt/cloudhsm/etc/cloudhsm_mgmt_util.cfgRestart Wildfly with the following command:
CODE# sudo systemctl restart wildfly or # sudo service wildfly restart