Login user to AWS cloudHSM with MFA enabled fails

0

I setup MFA for a CloudHSM user; I used I did all the work on a REHL EC2. I followed the steps outlined in https://docs.aws.amazon.com/cloudhsm/latest/userguide/set-up-mfa-for-cloudhsm-cli.html

Before login, I confirmed the unsigned-tokens.json file is signed for all the tokens.

I followed all the step outlined in https://docs.aws.amazon.com/cloudhsm/latest/userguide/login-mfa-cloudhsm-cli.html when I attempt to login as the use with MFA. It if fails as you see below:

aws-cloudhsm > login --username admin1 --role admin mfa-token-sign --token unsigned-tokens.json Enter password: Enter signed token file path (press enter if same as the unsigned token file):unsigned-tokens.json { "error_code": 1, "data": "One or more required tokens missing from signed token file"

Am I missing anything? I did some research and found nothing.

anthony
asked 8 months ago191 views
1 Answer
0
Accepted Answer

I determined the syntax was to blame after pasting the signed tokens in the JSON file.

anthony
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions