Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.
Utilizza il user change-mfa token-sign comando nella CLI di CloudHSM per aggiornare la configurazione dell'autenticazione a più fattori (MFA) di un account utente. Qualsiasi account utente può eseguire questo comando. Gli account con il ruolo di admin possono eseguire questo comando per altri utenti.
Tipo di utente
Gli utenti seguenti possono eseguire questo comando.
-
Admin
-
Crypto user
Sintassi
Attualmente, è disponibile una sola strategia a più fattori per gli utenti: Token Sign.
aws-cloudhsm >
help user change-mfa
Change a user's Mfa Strategy Usage: user change-mfa <COMMAND> Commands: token-sign Register or Deregister a public key using token-sign mfa strategy help Print this message or the help of the given subcommand(s)
La strategia Token Firma richiede un file Token su cui scrivere token non firmati.
aws-cloudhsm >
help user change-mfa token-sign
Register or Deregister a public key using token-sign mfa strategy Usage: user change-mfa token-sign [OPTIONS] --username
<USERNAME>
--role<ROLE>
<--token<TOKEN>
|--deregister> Options: --cluster-id<CLUSTER_ID>
Unique Id to choose which of the clusters in the config file to run the operation against. If not provided, will fall back to the value provided when interactive mode was started, or error --username<USERNAME>
Username of the user that will be modified --role<ROLE>
Role the user has in the cluster Possible values: - crypto-user: A CryptoUser has the ability to manage and use keys - admin: An Admin has the ability to manage user accounts --change-password<CHANGE_PASSWORD>
Optional: Plaintext user's password. If you do not include this argument you will be prompted for it --token<TOKEN>
Filepath where the unsigned token file will be written. Required for enabling MFA for a user --approval<APPROVAL>
Filepath of signed quorum token file to approve operation --deregister Deregister the MFA public key, if present --change-quorum Change the Quorum public key along with the MFA key -h, --help Print help (see a summary with '-h')
Esempio
Questo comando scriverà un token non firmato per HSM nel cluster nel file specificato da token
. Quando ti viene richiesto, firma i token presenti nel file.
Esempio : Scrive un token non firmato per HSM nel tuo cluster
aws-cloudhsm >
user change-mfa token-sign --username cu1 --change-password password --role crypto-user --token /path/myfile
Enter signed token file path (press enter if same as the unsigned token file): Enter public key PEM file path:/path/mypemfile { "error_code": 0, "data": { "username": "test_user", "role": "admin" } }
Argomenti
<CLUSTER_ID>
-
L'ID del cluster su cui eseguire questa operazione.
Obbligatorio: se sono stati configurati più cluster.
<ROLE>
-
Specifica il ruolo assegnato all'account utente. Questo parametro è obbligatorio. Per informazioni dettagliate sui tipi di utente su un HSM, vedi Capire gli utenti dell'HSM.
Valori validi
Admin: gli admin possono gestire gli utenti, ma non possono gestire le chiavi.
Crypto user: gli utenti di crittografia possono creare e gestire le chiavi e utilizzarle nelle operazioni di crittografia.
<USERNAME>
-
Specifica un nome intuitivo per l'utente. La lunghezza massima è 31 caratteri. L'unico carattere speciale consentito è un trattino basso (_).
Non puoi modificare il nome di un utente dopo che è stato creato. Nei comandi della CLI di CloudHSM, il ruolo e la password sono sensibili alle maiuscole e alle minuscole, il nome utente no.
Campo obbligatorio: sì
<CHANGE_PASSWORD>
-
Specifica in testo semplice la nuova password dell'utente la cui MFA viene registrata/annullata.
Campo obbligatorio: sì
<TOKEN>
-
Percorso del file in cui verrà scritto il file token non firmato.
Campo obbligatorio: sì
<APPROVAL>
-
Specifica il percorso del file di un token firmato del quorum per approvare l'operazione. Richiesto solo se il valore del quorum del servizio utenti è maggiore di 1.
<DEREGISTER>
-
Annulla la registrazione della chiave pubblica MFA, se presente.
<CHANGE-QUORUM>
-
Modifica la chiave pubblica del quorum insieme alla chiave MFA.