CARVIEW |
Create an HSM crypto user using CloudHSM CLI
Follow these steps to create a hardware security module (HSM) crypto user (CU) using the CloudHSM CLI.
-
Use the following command to start CloudHSM CLI interactive mode.
- Linux
$
/opt/cloudhsm/bin/cloudhsm-cli interactive
- Windows
PS C:\>
& "C:\Program Files\Amazon\CloudHSM\bin\cloudhsm-cli.exe" interactive
-
Use the login command and log in to the cluster as the admin.
aws-cloudhsm >
login --username
<username>
--role admin -
The system prompts you for your password. Enter the password, and the output shows that the command was successful.
Enter password: { "error_code": 0, "data": { "username": "
<USERNAME>
", "role": "admin" } } -
Enter the following command to create a crypto user:
aws-cloudhsm >
user create --username
<username>
--role crypto-user -
Enter the password for the new crypto user.
-
Re-enter the password to confirm the password you entered is correct.
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.