To create a CloudHSM crypto user, do the following:
Login as the CO admin:
aws-cloudhsm> login CO admin <password>
CODE
Create an ejbca crypto user:
aws-cloudhsm> createUser CU ejbca <password>
CODE
Use listUsers to see all users:
aws-cloudhsm> listUsers
aws-cloudhsm>listUsers
Users on server 0(172.16.2.59):
Number of users found:2
User Id User Type User Name MofnPubKey LoginFailureCnt 2FA
1 CO admin NO 0 NO
2 CU ejbca NO 0 NO