Use AWS CloudHSM key store with keytool using Client SDK 5
Keytool
When using keytool with the AWS CloudHSM key store, specify the following arguments to any keytool command:
ML-DSA and keytool
Keytool supports ML-DSA in JDK 24 or later.
The following keytool commands are supported with ML-DSA keys:
-certreq – Generate a certificate signing request for an ML-DSA key.
-importcert – Import a certificate for an ML-DSA key.
-exportcert – Export a certificate for an ML-DSA key.
The following command is not supported with ML-DSA keys:
-genkeypair – AWS CloudHSM does not support ML-DSA key import, and keytool generates keys in software before importing. Use
KeyPairGeneratoror the CloudHSM CLI to generate ML-DSA key pairs.
If you want to create a new key store file using AWS CloudHSM key store, see Use the AWS CloudHSM KeyStore for AWS CloudHSM Client SDK 3. To use an existing key store, specify its name (including path) using the –keystore argument to keytool. If you specify a non-existent key store file in a keytool command, the AWS CloudHSM key store creates a new key store file.