- Newest
- Most votes
- Most comments
It appears you're experiencing issues connecting to your AWS CloudHSM instance from your EC2 instance. The error messages suggest there are problems with the SSL/TLS certificate verification. Here are some steps to troubleshoot and potentially resolve this issue:
-
Certificate Verification: The error indicates a self-signed certificate issue. Ensure that you have the correct and up-to-date cluster CA certificate. The method you used to obtain the certificate (using the AWS CLI) is correct, but double-check that the certificate content is valid and complete.
-
Certificate Placement: Verify that the certificate file (customerCA.crt) is in the correct location (/opt/cloudhsm/etc/) and has the proper permissions. The CloudHSM client should be able to read this file.
-
CloudHSM Client Configuration: Make sure your CloudHSM client is properly configured. Check the configuration file (typically located at /opt/cloudhsm/etc/cloudhsm-client.cfg) to ensure it has the correct HSM IP address and other necessary settings.
-
Network and Security Group Settings: Confirm that your EC2 instance's security group allows outbound traffic to the HSM on the required ports (usually 2223 for CloudHSM). Also, ensure that the HSM's security group allows inbound traffic from your EC2 instance.
-
CloudHSM Client Version: Ensure you're using the latest version of the CloudHSM client. Outdated versions might have compatibility issues with newer HSM firmware.
-
EC2 Instance Time Sync: Verify that your EC2 instance's time is correctly synchronized. Time discrepancies can cause SSL/TLS negotiation failures.
-
Additional Configuration Files: Check if there are any missing or misconfigured files such as cloudhsm-client.cfg, cloudhsm-client.crt, or cloudhsm-client.key in the /opt/cloudhsm/etc/ directory.
If these steps don't resolve the issue, you may need to regenerate the client certificate and key. You can do this by running:
sudo /opt/cloudhsm/bin/configure-cli -a <hsm_ip>
This command should fetch the correct certificates from the HSM instance and set up the necessary files.
If you continue to experience issues after trying these steps, it would be advisable to contact AWS support for further assistance. They can provide more specific guidance based on your exact setup and configuration.
Sources
Cannot connect to cloudhsm using openssl | AWS re:Post
ERROR 2026 (HY000): TLS/SSL error: unable to get local issuer certificate | AWS re:Post
answered a year ago
Relevant content
asked 2 years ago
