ENTERPRISE
This page helps you choose between AWS Key Management Service (KMS) and AWS CloudHSM to protect the Certificate Authority (CA) keys of an EJBCA deployment on AWS.
Recommendation: AWS KMS for key protection on AWS
For new EJBCA deployments on AWS, Keyfactor recommends AWS KMS, using the EJBCA AWS KMS crypto token, instead of AWS CloudHSM. AWS also recommends KMS for most use cases. See AWS KMS or AWS CloudHSM: Choose the right key management solution.
AWS lists a Public-Key Cryptography Standards #11 (PKCS#11) interface as a reason to choose CloudHSM. This does not apply to EJBCA, because the EJBCA AWS KMS crypto token calls the AWS KMS API directly.
This is a recommendation, not a deprecation. EJBCA deployments that use CloudHSM keep working, and CloudHSM remains supported. For deprecated features, see EJBCA Deprecation Timeline. Moving an existing CA from CloudHSM to KMS requires new keys and a new CA.
When to Use AWS CloudHSM
Use KMS unless one of these applies:
-
You need a dedicated, single-tenant Hardware Security Module (HSM). AWS KMS custom key stores cannot replace it for EJBCA CA keys, because they support only AES symmetric encryption keys.
-
You use EJBCA functions that need the CA key for decryption, such as key recovery with the CA
keyEncryptKeyor Simple Certificate Enrollment Protocol (SCEP) request decryption with the CA key. The EJBCA AWS KMS crypto token is used for signing only.
For SCEP, you can use a separate decryption key. For information about the Use separate keys for SCEP decryption setting and its limitations, see SCEP.
Algorithm and Deployment Considerations
-
Post-quantum signing keys on AWS: Use AWS KMS to protect Module-Lattice-Based Digital Signature Algorithm (ML-DSA) keys.
-
Key types and algorithms: Confirm that AWS KMS supports the key types and signing algorithms you need. Refer to the the AWS KMS Developer Guide Key spec reference topic. For CloudHSM, refer to the supported key types and Supported mechanisms for the PKCS #11 library for AWS CloudHSM Client SDK 5.
-
ML-DSA with CloudHSM: CloudHSM provides ML-DSA only through AWS vendor-defined mechanisms, which EJBCA does not support.
-
Existing CloudHSM deployments: No action is required.