选择您的 Cookie 首选项

我们使用必要 Cookie 和类似工具提供我们的网站和服务。我们使用性能 Cookie 收集匿名统计数据,以便我们可以了解客户如何使用我们的网站并进行改进。必要 Cookie 无法停用,但您可以单击“自定义”或“拒绝”来拒绝性能 Cookie。

如果您同意,AWS 和经批准的第三方还将使用 Cookie 提供有用的网站功能、记住您的首选项并显示相关内容,包括相关广告。要接受或拒绝所有非必要 Cookie,请单击“接受”或“拒绝”。要做出更详细的选择,请单击“自定义”。

使用 AWS CloudHSM 管理实用程序创建 HSM 用户

聚焦模式
使用 AWS CloudHSM 管理实用程序创建 HSM 用户 - AWS CloudHSM

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

createUser在 AWS CloudHSM 管理实用程序 (CMU) 中使用,在硬件安全模块 (HSM) 上创建新用户。必须以 CO 身份登录才能创建用户。

创建一个新的 CO 用户
  1. 使用配置工具更新 CMU 配置。

    Linux
    $ sudo /opt/cloudhsm/bin/configure --cmu <IP address>
    Windows
    C:\Program Files\Amazon\CloudHSM\bin\ configure.exe --cmu <IP address>
    $ sudo /opt/cloudhsm/bin/configure --cmu <IP address>
  2. 启动 CMU。

    Linux
    $ /opt/cloudhsm/bin/cloudhsm_mgmt_util /opt/cloudhsm/etc/cloudhsm_mgmt_util.cfg
    Windows
    C:\Program Files\Amazon\CloudHSM> .\cloudhsm_mgmt_util.exe C:\ProgramData\Amazon\CloudHSM\data\cloudhsm_mgmt_util.cfg
    $ /opt/cloudhsm/bin/cloudhsm_mgmt_util /opt/cloudhsm/etc/cloudhsm_mgmt_util.cfg
  3. 以 CO 用户身份登录 HSM。

    aws-cloudhsm>loginHSM CO admin co12345

    确保 CMU 列表的连接数与集群 HSMs 中的连接数相匹配。如果没有,请注销并重新开始。

  4. 使用 createUser 创建名为 example_officer 的 CO 用户,密码为 password1

    aws-cloudhsm>createUser CO example_officer password1

    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)?
  5. 键入 y

创建一个新的 CU 用户
  1. 使用配置工具更新 CMU 配置。

    Linux
    $ sudo /opt/cloudhsm/bin/configure --cmu <IP address>
    Windows
    C:\Program Files\Amazon\CloudHSM\bin\ configure.exe --cmu <IP address>
    $ sudo /opt/cloudhsm/bin/configure --cmu <IP address>
  2. 启动 CMU。

    Linux
    $ /opt/cloudhsm/bin/cloudhsm_mgmt_util /opt/cloudhsm/etc/cloudhsm_mgmt_util.cfg
    Windows
    C:\Program Files\Amazon\CloudHSM> .\cloudhsm_mgmt_util.exe C:\ProgramData\Amazon\CloudHSM\data\cloudhsm_mgmt_util.cfg
    $ /opt/cloudhsm/bin/cloudhsm_mgmt_util /opt/cloudhsm/etc/cloudhsm_mgmt_util.cfg
  3. 以 CO 用户身份登录 HSM。

    aws-cloudhsm>loginHSM CO admin co12345

    确保 CMU 列表的连接数与集群 HSMs 中的连接数相匹配。如果没有,请注销并重新开始。

  4. 使用 createUser 创建名为 example_user 的 CU 用户,密码为 password1

    aws-cloudhsm>createUser CU example_user password1

    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)?
  5. 键入 y

有关 createUser 的更多信息,请参阅 createUser

下一主题:

列出所有用户

上一主题:

权限表
隐私网站条款Cookie 首选项
© 2025, Amazon Web Services, Inc. 或其附属公司。保留所有权利。