本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
在 AWS CloudHSM Management Utility (CMU) changePswd中使用 來變更硬體安全模組 (HSM) 使用者的密碼。
使用者類型和密碼需區分大小寫,但使用者名稱不區分大小寫。
管理員、加密使用者 (CU) 和設備使用者 (AU) 只能變更自己的密碼。若要變更其他使用者的密碼,您必須以 CO 身分登入。您無法變更目前已登入使用者的密碼。
如要變更您自己的密碼
-
使用設定工具來更新 CMU 組態。
$
sudo /opt/cloudhsm/bin/configure --cmu
<IP address>
-
啟動 CMU。
$
/opt/cloudhsm/bin/cloudhsm_mgmt_util /opt/cloudhsm/etc/cloudhsm_mgmt_util.cfg
-
登入 HSM。
aws-cloudhsm>
loginHSM CO admin co12345
請確定連線 CMU 清單的數目與叢集中的 HSM 數目相符。如不符,請登出並重新啟動。
-
使用 changePswd 變更您自己的密碼。
aws-cloudhsm>
changePswd CO example_officer
<new password>
CMU 會提示您變更密碼的操作。
*************************CAUTION******************************** This is a CRITICAL operation, should be done on all nodes in the cluster. AWS does NOT synchronize these changes automatically with the nodes on which this operation is not executed or failed, please ensure this operation is executed on all nodes in the cluster. **************************************************************** Do you want to continue(y/n)?
-
輸入
y
。CMU 會提示您變更密碼的操作。
Changing password for example_officer(CO) on 3 nodes
如要變更其他使用者的密碼
-
使用設定工具來更新 CMU 組態。
$
sudo /opt/cloudhsm/bin/configure --cmu
<IP address>
-
啟動 CMU。
$
/opt/cloudhsm/bin/cloudhsm_mgmt_util /opt/cloudhsm/etc/cloudhsm_mgmt_util.cfg
-
以 CO 使用者身分登入 HSM。
aws-cloudhsm>
loginHSM CO admin co12345
請確定連線 CMU 清單的數目與叢集中的 HSM 數目相符。如不符,請登出並重新啟動。
-
使用 changePswd 變更其他使用者的密碼。
aws-cloudhsm>
changePswd CU example_user
<new password>
CMU 會提示您變更密碼的操作。
*************************CAUTION******************************** This is a CRITICAL operation, should be done on all nodes in the cluster. AWS does NOT synchronize these changes automatically with the nodes on which this operation is not executed or failed, please ensure this operation is executed on all nodes in the cluster. **************************************************************** Do you want to continue(y/n)?
-
輸入
y
。CMU 會提示您變更密碼的操作。
Changing password for example_user(CU) on 3 nodes
如需 changePswd 的詳細資訊,請參閱 changePswd。